if you forgot "var" (mac impact)
In my last product, a MAC user seems to have an issue when closing the script (error popup + log file). I still don't know - I asked - if the script worked or not as expected before it was closed. The...
View ArticleScripting in DAZ Studio 2025
Hi, Is any documentation have been released about the updates in scripting required by DAZ Studio 2025?
View ArticleDaz Studio 2025, "Global" variables, Scoping, and Lifetime
I am slowly going insane trying to figure out the scripting in Daz Studio 2025. I understand it is an alpha, it may change, etc, but I am getting questions on my scripts in DS 2025, and I cannot do...
View Articlesetting Environment pane variable, and invoking a utility programmatically
The updated version of "Mask and Multipass Render Toolbox" now consistently leaves the backdrop visible in the render, though it didn't before letting it update. So I have a question (and a second...
View ArticleHow to remove a category
I can create a new category with var nId = App.getAssetMgr().findCategoryID("New Cat", false, true); But how to remove it?
View ArticlePos of non DzWidget?
Is there a chance to get any screen position info of an item not a DzWidget (e.g. DzListViewItem, without triggering a ListView-Event in advance)?
View ArticleAutomatize 'Fit to' and 'Auto Fit'
A procedure I do over and over is right-clicking on a clothing item and selecting 'Fit Cloth_name to...'. then the 'Fit to' dialog box appears. When I press Accept, the second dialog box 'Auto-Fit'...
View ArticleWeird Date parsing issue?
So I'm trying to rationalize what's going on with Date objects and coming up empty. The documentation claims that Date string interchange format is: YYYY-MM-DDTHH:mm:ss.sssZ And if I look at an...
View ArticleCompatibilities vs CompatibilityBase
What is difference between Compatibilities and CompatibilityBase? seems both does the same job, I guess CompatibilityBase is old and single input, later on Compatibilities added that accepts multiple...
View ArticleUsing DzBox3::getIntersection
Not sure if it is the method or my understanding that is incorrect here... The result appears to always be [0, 0, 0] for the first intersection point with both DS4 and DS6, and the DS4 SDK. In the...
View ArticleSave / Export currently used parameters names : Closed
Does anyone know a way to save / export currecntly used parameters as a list of parameters names. Or better a script to save / export the locked parameters as an export morph list so I can import it?...
View Articlehelp with a script idea (IOR value insert) , and I no idea how to write one
I made a list of IOR values and the material names. I would like to create a script that lists the names and the values that allows the opperator to select the value and it will change only the IOR...
View ArticleMaterials of a DzMaterialSelectionSet?
I can get the materials of a shape via DzShape.getNumMaterials(). I can get the selection sets of a shape via DzShape.getMaterialSelectionSets() (recursive). But how to get the materials assigned to a...
View ArticleUsing AI to develop DAZ Script
Hi all, Because I haven't seen any mention, I thought I'd share my experiences. I've had excellent results with Clause Sonnet 3.5 as well as ChatGPT 4o (which is still supposed to be better at code...
View ArticleHelp with timeline script
I need a script that creates consecutive keyframes where only the camera's coordinates change. I want to specify the coordinates in a list x1, y1, z1 /n/ x2, y2, z2, /n/ ... xn, yn, zn. It would be...
View ArticleFile > Save Last Draw bitmap / can a script access that?
Is it possible to get the draw buffer that is written by Menu > File > Save Last Draw, or at least to trigger that save function from a script? My script currently does...
View ArticleBug in DS v4.24.0.3 Beta: DzSIReloadAction sets getScriptFileName() == ""
This bug was in DS v4.11.0.236 (see this thread: 333656/bug-since-ds-v4-11-0-236-dzsireloadaction-sets-getscriptfilename). It was fixed in DS v4.15.0.25, August 2021 It does not exist in DS v4.21.0.5...
View Articleerror::backtrace() raises an error
e.backtrace() raises TypeError: Result of expression 'e.backtrace' [undefined] is not a function. Happens in both DS v21.0.6 Beta and DS v4.24.0.3 Beta OS: Win11 64bit Am I doing something wrong?, or...
View ArticleUse D-Former Weight Map via script for morph attenuation?
I have a script that loads an OBJ morph using silent mode, and it works correctly. What I’d like to do now is limit the morph so that it only affects the head, without influencing the body. When doing...
View ArticleCreate new property on a node to store current position
I have a hierachy of Camera and Light nodes that I want to store their current x,y,z position before I alter them. So that I can restore them later. So I want to create a new DzVec3 'property' to hold...
View ArticleCreating an IK Chain node in script
Could someone point me to the IK Chain docs page because I'm unable to find anything on that specific class?
View ArticleChanges in script (transation) not visible in Viewport
No matter what changes I make to an IK Chain node, like setWSPos() or property.setValue(), nothing changes in the viewport, even if the values did change in the Properties panel. How can I make changes...
View ArticleScene .duf parsing, How to distinguish between a Pose and a Shape animation key
I'm trying to parse scene .duf files to extract Poses and/or Shape animation keys. What's the best way to do this ? for Shape/Morph Right now I'm looking inside the url to a substring "/Morphs/", as I...
View ArticleNode questions
I'm starting work on a script that needs the user to select a single (non-hip) bone in a jointed figure - for example, the Pelvis of a G8F. I know how to check that there's just one node selected - by...
View ArticleHow to get the current viewport subd level?
Hi, I'm trying to get the current viewport subd level. I've tried this code but it always returns 0 no matter what. var myMesh =...
View ArticleDzGroupNone behaviours
Hi, I have some issues to get a DzGroupNode created in script to behave similar (give the same results) as a DzGroupNode created using Create->New Group... and enbedding the selected node into the...
View ArticleAccessing the Object Index (503 Service Unavailable)
Has the way the Object Index is accessed changed? I've been trying this link: http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/start It has...
View ArticleThe commands for setting invert axis in OBJ export do not seem to work.
oSettings.setBoolValue( "InvertLat", false ); // Do not invert the vertical axis oSettings.setBoolValue( "InvertVert", false ); // Do not invert the depth axis oSettings.setBoolValue( "InvertDepth",...
View ArticleI'm trying to open a specific folder for the library, but I'm missing something.
Hi everyone, so I would like to open a specific folder from the library. It doesn't seem a big deal, but I can't find a way. I should also say, my scripting knowledge is basically zero. I've googled...
View ArticleI am looking for some help for custom export, setting morphs via script
Hey there, I am currently in the process of making the best off the daztoc4d bridge and that brings me to a step inside the pipeline which has me exporting a couple morphs over and over depending on...
View Article