A year later, and I'm back to this topic. Rob's script is great, but incomprehensible to me.I have 2 poser installs on the same SSD - P6 and P9. P6 Favorites are no problem, but the P9 script only ever finds the P6.folders.
The relevant section comments are kind of vague
// Set the base to the first mapped Poser formats directory
// Set the first value to the id of the top-level container, // set the second value to the base path within that container
The trouble is I don't know what line any of these refer to. And how would it change for a 2nd Poser install?
It's not anything life-threatening, but surely someone knows how it works?
// Set the base to the first mapped Poser formats directory
var sBase = String("%1/%2")
.arg( oContentMgr.getPoserDirectoryPath( 0 ) )
.arg( sIntermediate );
// Set the first value to the id of the top-level container,
// set the second value to the base path within that container
var aIdPath = [ oAssetMgr.getPoserDirID(), sBase ];
// Split the relative path into its individual parts
var aRelativeParts = sPath.split( "/" );
// Iterate over each part in the relative path,
for( var i = 0; i < aRelativeParts.length; i += 1 ){
// Push the full path of the 'current' part onto the id path array
aIdPath.push( String("%1/%2")
.arg( sBase )
.arg( aRelativeParts.slice(0, i + 1).join( "/" ) ) );
}
TIA