Timer and Time changing
Hello, I would like to start a function when a file appears. Of course, this file would be created by another application. For me, this action can be done by two way: - A signal in a dzFile. - A...
View ArticleSetting Surface Diffuse Collor Image
I have a simple plane with an image on it. When I run the script, I would like the replace the currest diffuse color image with the next image in a series. I'm just getting started in DAZ scripting...
View ArticleHow to script modifying a body shape?
Hello, I'm trying to write a very simple "random character" script, but I really don't know to script. I have to do two things : - How to get existing shapes names for an object ? - How...
View ArticleChanging a Planes Diffuse Color and Opacity maps
I.m pretty new at scripting but have a background in JS. Im trying to write a script that will increment through a series of diffuse color and opacity strength maps so that I can change the images...
View ArticleRead and/or write binary files in a script.
Hello, sorry to ask you another question because I don't find any solution to resolve my problem. I would like to read and/or write binary files. I thought I will find a way to create an array...
View ArticleDeleted Node
Hi, Say I have a variable, X, which contains a reference to a node in the scene. If I delete the node from the scene, X still points to that non-existent node. The variable X still returns some...
View ArticleRendering from different cameras
I'm working on creating a visual catalog of the 30+ hairstyles that I have in my library so I can remember which is which. I have a scene setup with G8 in a pose at the origin and four cameras (Front,...
View ArticleFit to through script
Hi! I'm trying to change the value of the "Fit to" parameter through a script. I have some clothing and two figures, so I want to move the clothes from one to the other. When I list the cloth...
View ArticleGlobal::startBackgroundProgress() - How to Cancel?
When I run this sample script: http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/general_ui/background_progress/start, pressing Esc has no effect...
View ArticleProblems triggering an action
I'm trying to script the 'Invert Selection' action that appears on the Scene pane menu under Select - shortcut is Ctrl-Shift-I. I have studied the two scripts referenced here:...
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 ArticleIray light params
I have a user who wants to use the light panel plugin with iray lights. I have been scraping the docs I can find but can't work out how to find the Iray Uber(?) light params. Any help greatly...
View ArticleAny better API documentation?
Is there any better API documentation than this? I am working with a lot of files and need to make some random changes to each file that would be a whole lot easier to script than to do manually....
View ArticleA script to Orbit Camera around a point
This topic seems to come up occasionally, but I couldn't find an existing "Orbit Camera" script, so I've written one (CameraOrbit.dsa) and attached it to this post. It shows one way to Orbit Camera...
View ArticleDoes mcjlag effect work with Genesis 8/Daz 4.10?
Tried the following: Exported an auto-fitted skirt to Aiko 8 as OBJ Reimported it as OBJ Parented to Hip Node Applied D-form and place same way mcasual does here:...
View ArticleaddFacet with trigons?
Hi, I'm working on porting/rewriting something in DAZ Studio script that works with trigons, not quads. When I try to create some resulting mesh, no facets are added. aVertexIndices = new Array(3);...
View ArticleGetting user-facing files for a product
If I want to get the user-facing files for a product, do I need to use dzAssetMgr.searchForProductAssets? DzProductAssetContainer, which seems to be the object for a product, has a method to get...
View ArticleIs there a way to read or write a DUF file by script.
Hello, In many cases, reading or writing a DUF file in a script would be very useful. I tried to find a way to do so in the script documentation but I didn't find any method. Could you give me some...
View ArticleCursor Position
Edit* I see that this is only for 4.11 and above, so is there another way to get the cursor. In the Point reference page, there is an example for returning the cursors global position: var...
View ArticleUpdate selected assets metadata
Hello, I would like to update the metadata of all selected data with a script but it don't work... Here is my actual script : // DAZ Studio version 4.10.0.123 filetype DAZ Script var oPaneMgr =...
View Article