Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Browsing all 1036 articles
Browse latest View live

Texture gamma

Is there a way to change the gamma value of texture by script?

View Article


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 Article


Script 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 Article

Error/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 Article

adjust 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 Article


Relative 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 Article

Setting 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 Article

G3 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 Article


How 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 Article


How 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 Article

Transfer 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 Article

Get 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 Article

Modular 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 Article


Scripting: 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 Article

Image may be NSFW.
Clik here to view.

Simple 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 Article


Silent Export without showing options AND without showing File Dialog

I have been playing around with the publicly available "Export Selected Object" script....

View Article

Writing 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 Article


Script 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 Article

ctor 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 Article

to 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
Browsing all 1036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>