Load product into the scene by sku or description using script
Hello, I'm trying to load a daz product using the product name or product SKU number. Any help would be appretiated. Thanks.
View ArticleIray Canvas creation
Hello, I would like to write a script to create a Light Group canvas for each light present in the scene. Is it possible to do this from the scripting interface? I could not find any documentation...
View ArticleLoad message when loading PNG
I'm trying to let the user know when a file with a PNG extension is used, it gives a notice about transparent PNGs, how do I give a message box when it loads a PNG? var sPath =...
View ArticlePossible to read Morph Rules through DzFbxExporter?
Is it possible to parse the existing morph rules from DzFbxExporter or are they perhaps stored in a file somewhere that could be accessed?
View ArticleAdding custom actions to default GUI
Hi, I'm creating a Genesis Assets converter. It's already working right now but I'm working on the best way to integrate it properly into DAZ GUI. For now, I did the basic way : a script that prompts a...
View ArticleRetrieve product preview image from DzProductAssetContainer instance
Hi, I'm creating a simple script that would be an alternate "assets explorer", a sort of mix between the "Smart Content" tab and the "Content Library" panel. Basing on the doc example...
View ArticleNeed some help with LineRender9000, and some modifications...
TL;DR: I'm using Daz Studio to create 2D assets that make use of normal, diffuse and specular maps. In my current piepline, I have to perform seven different renders on every frame of animation. I...
View Articlesilent saving doesnt save
Hi everyone, I started a little scripting project and ran into a problem. The endgoal is to loop over the frames of the timeline in a scene and save each frame as a posePresetFile in a defined folder....
View Articlehow do we read/set the resolution level via script ?
This is to help the diffeomorphic plugin. I tried to look at the api reference in the documenation center but it seems it's mostly incomplete plus my programming days are far away now. We need to...
View ArticleEmpty morph deltas
var node = Scene.getPrimarySelection(); var obj = node.getObject(); var morph = obj.findModifier("PHMBrowWidth"); var deltas = morph.getDeltas(); print("Num deltas: "+deltas.getNumDeltas ()); If I run...
View ArticleHow to get height position for a simulated ball falling to ground, in every...
Hello my dear Ladies and Gentlemen, I need your help. I have a ball, simulated to fall to ground using dforce. When I play the simulation, the ball height position (Y translation property) never...
View ArticleHow to add an image to a surface on an object upon clicking script?
What code would I have to use in order to add a random texture to a surface on an object upon clicking the script's icon?
View ArticleFull path of the current script
Hello, I will ask a very simple question but I didn't find a way to get the answer in the documentation, in the old posts or in the samples. I would like to get the full path of the current script. I...
View ArticleAccessing environment variables from DAZ Script,& Mac equivalent of %APPDATA% ?
Just started looking at one of my old PoserPython/DA Script thingies, because I now want to start writing to a datafile (previously I only ever read the datafile). Assuming the user had both DAZ Studio...
View ArticleHow to show full exception stack trace?
When an exception is thrown I only see the last function in the stack trace. How do I get the full trace- see its caller, and its caller, etc...?
View ArticleProxy scripts and Multiple UV Sets
I successfully got the 2 proxy scripts to work with alternate UV Sets...
View ArticleAssign a color to a material property (Solved)
How do I assign a color to a material property? In this case I am looking to assign Emission Color. I have gotten the property found. var prop2 = mat.findPropertyByLabel( "Emission...
View ArticleHow to terminate a running script completely
In my script, I render a lot of images. It stops when I hit CANCEL on render window, but a few seconds it starts rendererring another image. How can I terminate this running script completely ? Stop...
View ArticleEvery Face Groups Into Surface Groups
Hello, I'd like to receive some help as I'm not familiar with DAZ's scripting system and Documentation page is bit complicated to understand I'm trying to make a script that creates Surface Group from...
View Article