Scripting in DAZ Studio 2025
meipe
Posts: 108
Hi,
Is any documentation have been released about the updates in scripting required by DAZ Studio 2025?
You currently have no notifications.
meipe
Posts: 108
Hi,
Is any documentation have been released about the updates in scripting required by DAZ Studio 2025?
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2025 Daz Productions Inc. All Rights Reserved.
Comments
There is some geenral discussion in the Evergreen thread, starting here https://www.daz3d.com/forums/discussion/comment/9137811/#Comment_9137811 , but I would imagine that, like the SDk though perhaps to a lesser extent, vey little is as yet firmly locked down.
Thanks for the link Richard. That application restart script could come in handy for users weras iray is not functioning after a simulation and they could simply run the script to save current work to a temp file and restart studio with the scene resumed.
Thanks!
as a start...
this isn't supported anymore:
DzMaterial : doDuplicateElement( DzElementDuplicateContext context )
replace with this:
DzMaterial : duplicateOrDefaultMaterial( DzElementDuplicateContext context )
Yeah. Having similar issues where code was deprecated and we are unsure what they are replaced with. We will have to wait for the updated documentation.
Since this is an alpha release only it would be very wise to avoid trusting any undocumented calls - there is a pretty high probability that they may change before a full General Release version (and even then undocumented calls are not guaranteed to remain the same).
I am told that this issue is in any event fixed in the latest, not yet Public, build.
I understand your point, but it sounds they are already updating some official docs.
"duplicateOrDefaultMaterial" sounds new as it doesn't work with DAZ Studio 4.23-, and it is documented here:
DzMaterial [Documentation Center]
( tell me if I should start a new thread for this )
It seems that Qt6 (or DS6) handles certain assignments differently. As in assignment by value verses assignment by reference.
I have a script that stores the Viewport.size then changes it temporarily then restores the original size.
Attached is some code to demonstrate the differenence.
(just saw how to insert a code snippet, here it is again)
I think this is an example of the Object vs Object-Like section in https://www.daz3d.com/forums/discussion/comment/9137806/#Comment_9137806
I read that section and thought it might be related too. But it doesn't really get into assignment by value/copy verses assignment by reference.
Anyway, it's good to know to be extra careful you want to save the 'state' of an object to restore later.
thanks
I'll have a look at the tip to duplicate elements, because I already fixed one in one of my scripts for 2025, and it was a super "heavy-but-robust" methods, so if it works, I'll keep it in a corner of my mind!
Sometihng wrong with button icons. The worst is DAZ 2025 doesn't show any errors - it just messed up the dialog.
And here it's even worse. Total mess and no errors.
See https://www.daz3d.com/forums/discussion/comment/9137801/#Comment_9137801
Thank you. I hope "worked on in due course" means quite soon.
Turned the studio restart script into an autolaunch script with added info because Genesis8 behaves differently in Studio 2025.
One can choose to see the info, save out for later viewing or skip the info all together. you will be prompted to save the scene and has overwrite checks.
I have not spent much time on correcting the eyelash morph issue with G8 so users can ignore it and continue with the restart and reload of their scene,
If scene only has g9 there was no issue with the eyelash problems.