Daz Uber Iray Instance Tiling - How to Change?
I am trying to make a script that will change the instance tiling (in the Image Editor) for a bump map image in an Iray shader. In my duf file the only things I see referring to it's tiling are these 2...
View ArticleScript Iray Draw Settings?
Hello-- Is it possible to change Iray Draw Settings via script (not to be confused with Render settings)? Or better yet, is there a way to create and apply an iray draw settings preset? For example, I...
View ArticleError/Warning 'properties\dzenumproperty.cpp(734)'
I have a script loading some H.Materials and Materials files. My object (a book) has 2 Material Surfaces ('Cover' and 'Pages'). If I load an Iray Material (or H.Material) Preset, everything is fine:...
View Articleadjust property "Use Limits" in script [SOLVED]
Hi Everyone, This is probably a really easy answer but I have been looking through the API and several pages trying to find out how to set a control property to not "use limits" I will in turn be...
View ArticleRelative Paths
I feel like I'm missing something really obvious here, but I've got a script that works as long as I use absolute paths. It's pretty simple. I just call 2 different files to apply them both. Is there a...
View ArticleSetting UVs on a material
I was wondering... is there a way to set UVs on a material by its name? Setting it by its index works: var baseUV=myMaterial.findPropertyByLabel("UV Set") baseUV.setValue(2); But on...
View ArticleG3 to G8 script possible?
So the Autofit for G3f to G8f always fails under the arms for me...the mesh stretches to pieces, so I fall back to Sickleyields conversion Is setting the preferred base, and transferring rigging to...
View ArticleHow to load a texture file into the base color shader of a node (Iray) (SOLVED)
I have one geometry which is splited into a great number of textured elements. Instead of loading one by one the textures of these elements, I write a little script which can do it automatically, based...
View ArticleHow to Save a rendered image & Add Canvases
Hello, I have just started with Daz scripting. I'm trying to load a file, add a canvas and save the rendered image as a png. I have been able to load a file, start the render and activate the canvases...
View ArticleTransfer Utility
I have constructed a test script. Said script pulls scene selected nodes as objects, let's call them object 1 and object 2. So far, so good. Debug shows this part happens. I then construct a transfer...
View ArticleGet the path + filename of the current opened scene
Hi, I can't find any clue about getting the path and the name of the current scene opened in Daz Let say I opened c:\test\exemple.duf file in daz, how can I get this info using script ? I've seen...
View ArticleModular arithmetic
I would expect any operation mod n to return a value in [ 0 , n - 1 ]. Using the % operator in Daz Script that works for addition but not for subtraction: for ( var i = 0 ; i < 4 ; i++ ) { print...
View ArticleScripting: Modifying Daz Script to prompt for file name?
I'm trying to use this daz script sample: The Save a Pose Preset http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/file_io/save_duf_pose/start It...
View ArticleSimple explanation for a C# developer (classes/inheritance)
Hi @all, For some purposes, I want to use (quite simple) inhertance in scripts an I saw this is possible, but a bit frustrating for me, because I can't find a complete reference for scripting. I 'm...
View ArticleSilent Export without showing options AND without showing File Dialog
I have been playing around with the publicly available "Export Selected Object" script....
View ArticleWriting a little script to open a PDF file?
Hey guys, I am looking for a little script that will open up a PDF user-guide when clicked on. The purpose is simple: Rather than having the user search the support folder for my PDF manuals, I would...
View ArticleScript to auto select left eye for focusing camera
Hi I'm trying to write a script to auto select the left eye, once selected i would the run a second script to focus the camera on the left eye. The second part of the script is done, i managed to...
View Articlector for DzMenu
Does anybody know, who to show a context-menu when right-clicking (i.e. a DzListViewItem). Following code does not work: var menu = new DzMenu(); menu.addItem("Clear Poses"); menu.addItem("Clear...
View Articleto close the dialog after pause
Hi! I can't understand how to close the dialog after pause automatically without pressing the buttons. The task is simple, but... :)
View Article