Forum: DAZ|Studio


Subject: Script for Executing a Series of Presets

Cobbler3D opened this issue on Jul 16, 2022 ยท 8 posts


Cobbler3D posted Sat, 16 July 2022 at 4:50 PM

Looks like it doesn't work, I tried both DzContentMgr.openNativeFile(Filepath in "", merge=true) and openFile(Filepath in "", merge=true) . I also had selected the G8F figure in the scene before I ran the script...

syntax:

DzContentMgr.openNativeFile("D:\DAZ 3D Content Library\People\Genesis 8 Female\Characters\Madeline\Materials\Eyes\Eyes 02.duf", true)

Error:

Script Error: Line 1

TypeError: Result of expression 'DzContentMgr.openNativeFile' [undefined] is not a function.
Stack Trace: ()@:1
Error executing script on line: 1
Script executed in 0 secs 1 msecs.
-------------------------------
Do I need to make an instance of the DzContentMgr first?