Thanks very much, Rob .... I hope, if I can figure this out.
This is important enough to me that it will hopefully let me continue using DS, as purely the inability to have shortcut scripts to locations in the Poser and DS formats parts of the DS content library has been driving me to look at moving to Poser. Quite apart from all the stuff that means I can’t do anything at all with the computer most of the time, I’ve now developed a thing where, even when I am able to use the computer, for a while now I’ve had stabbing pains under my wrist every scroll or click. As I don’t want to just render portraits of a single figure with just a hair and a material setting, but rather scenes with lots of characters, props etc, having to navigate up and down, up and down, up and down between the Poser and DS format content has become just too painful. Having a menu of actions to shortcut jumps to particular places, and scripts in certain folders to jump to certain other folders should get using the content library usable again for me.
As a complete non scripter, though, this is a lot more complicated than the one-line script I used to use in DS3 quoted in the first post, where it was obvious what to change for shortcuts to different places (i.e. just the absolute path to the folder wanted).
Trying to work through this, I’m guessing ....
// Set the id used by the switches
var sContainer = sStudioDir;
leave that for a shortcut to a DS content folder, change sStudioDir to sPoserDir for a Poser format folder.
And for DS fomat content ...
sBase = oContentMgr.getContentDirectoryPath( 0 );
change the number in the brackets for content in different DS format content folders (I have My Library, my DS3 content and my DS2 content) - presumably they number top down as they appear in the content library display, starting at 0 at the top. Then edit the relative path in sRelative = “Scripts/Utilities”; for the actual folder.
While for a Poser format folder in a pathed runtime ....
sBase = String(”%1/Runtime/Libraries”).arg( oContentMgr.getPoserDirectoryPath( 0 ) );
again change the number for the different runtimes (I have 7), numbered down as they are listed in the content library. Then edit the relative path starting from below runtime:libraries in sRelative = “Character/DAZ People”;
Is that right?
And just to keep the script sizes down, I suppose one could omit all the ‘case’s other than the sStudioDir ones in shortcuts to studio format folders, and all but the sPoserDir ones in shortcuts to Poser format folders.
Assuming that’s correct-ish, i should be able to sort out a menu of shortcut scripts, and shortcut links between folders. So that will be great. Thanks again.
As a suggestion for a Product or freebie from someone, though, a script that would create the shortcut script to the selected folder would be very good. Two tools (or one tool that carried out both functions): one to create shortcut scripts for a favorites menu (or tab); one to create shortcut scripts from one folder to another.