Get the path + filename of the current opened scene
ratus69_c6741fefbf
Posts: 34
Hi,
I can't find any clue about getting the path and the name of the current scene opened in Daz
Let say I opened c:\test\exemple.duf file in daz, how can I get this info using script ?
I've seen things with DzFIleInfo or DzFile but a path is needed
Thanks
Comments
Scene.getFilename() http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/scene_dz#a_1aa338a2077f9a344468248ed644fe31d6
so easy...thanks a lot Richard !
Getting scene filename...how I did it, in cae I can't find my notes later ;)
var v_TmpFile = new DzFileInfo( Scene.getFilename() );
var v_FileName = String( "%1.%2" ).arg( v_TmpFile.baseName() ).arg( v_TmpFile.extension() );