Digital Art Zone

 
     
How can a DUF-scene be loaded from a script?
Posted: 08 October 2012 09:46 AM   [ Ignore ]
New Member
Total Posts:  6
Joined  2010-12-21

This little script:

// DAZ Studio version 4.5.0.137 filetype DAZ Script

Scene.clear()
Scene.loadScene(“D:\\DS_scenes\\Scene_1.daz”,Scene.OpenNew)

loads an old DAZ-format scene without problems. But if I try to load a DUF-format scene the same way, nothing happens - not even an error message.
Does anyone know how to load a DUF-format scene from a script?

Profile
 
 
Posted: 08 October 2012 12:30 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  15734
Joined  2003-10-09
App.getContentMgr().openNativeFile( sceneNametrue )

works for me

 Signature 

DAZ Studio Frequently Asked Questions

Index of free DAZ Studio scripts and plugins list

Profile
 
 
Posted: 08 October 2012 02:58 PM   [ Ignore ]   [ # 2 ]
New Member
Total Posts:  6
Joined  2010-12-21

It worked for me too - Thank you

Profile