binhotinto opened this issue on Jul 28, 2009 · 4 posts
mishamcm posted Tue, 28 July 2009 at 9:06 AM
You need ti save it in the DS-format content folder, not the Poser-format runtimelibraryprops folder. DS script files (.ds/.dsb/.dsa/.dse) are only visible in the Poser-format runtime if there is a Poser file of the same name, in which case the script is run instead of the Poser file. DS-format scene files (.daz) aren't visible in the Poser--format runtime at all.
// Load a scene file instead of a Poser file
if ( getArguments().length != 0 ) {
var sourceName = getArguments()[ 0 ];
var periodPos = sourceName.findRev( "." );
if ( periodPos != -1) {
sourceName = sourceName.left( periodPos ) + ".daz";
App.getContentMgr().openNativeFile( sourceName , true );
}
}
=====================================
When you click on the .pp2 in DS (in DS3 there'll be a scroll in the upper left corner of the icon to let you know there's a .ds file there), the .ds file is executed, which loads the .daz file.