Forum: Poser Python Scripting


Subject: How to fetch the full os.path of a CurrentFigure ?

HartyBart opened this issue on Dec 27, 2020 ยท 27 posts


structure posted Sun, 27 December 2020 at 3:42 PM Forum Coordinator

to my knowledge, you would have to index your runtime folders and store a readable index file ( unless you want to index every time you load the script).

I find this is easiest using json as it dumps a dictionary structure to disk, so you could have the script build a dictionary:

something along the lines of

{ "suburbhouse" : ( "runtimelibrariesCharacterHousesuburbhouse.cr2", "runtimelibrariesPoseHousesuburbhouse.cr2" ) } 

this method will store an alias, the path to the aliased cr2 and the path to the pose folder.

{ "suburbhouse" : (  "runtimelibrariesPoseHousesuburbhouse.cr2" ) }

this method stores the alias and the pose, you would need a second dictionary for the alias and the cr2 and you would need to cross-reference them.

Locked Out