Loading a figure by script
cimar
Posts: 13
Hello,
is there a better way to load a figure (in my case Genesis 8) by script? I'm currently loading the dev version (which is what I want) by using it's absolute path with DzContentMgr.openNativeFile. But I have to well, use the absolute path and the window asking me if I want to load a new figure pops up, which is useful if I want to load a figure manually, but I'd rather skip when using the script. Is there a better way?
Comments
There are methods to get an absolute path from a relative path, I think http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/contentmgr_dz#a_1af1e5fa8d53b1a306a0b057ada765ffd0 is the one you want (note that it returns an array, since there might be multiple copies of the file).
Ah, neat! That's useful. Thanks!
This sample script should help http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/file_io/file_find/start