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


HartyBart posted Sun, 27 December 2020 at 3:32 PM

I'm thinking of how to make a simple scripted variant of Poser's existing "Show in Explorer" Content Library functionality.

But in this case, instead of opening the Character path to the CR2, Explorer would instead open the relevant Pose folder path. The script would thus enable the user to quickly seek the figure's missing PZ2 MATs. An example vendor is 1971s, where many of his early models load without textures, and the user has to go seeking the MAT files over in the Poses folder.

How it might work:

  1. The script fetches the full os.path of the CurrentFigure in the scene.

  2. The CurrentFigure source is then known to be located at...

               "RuntimeLibrariesCharacterHouse on suburbHouse.cr2"
    
  3. Therefore, try to open the equivalent Pose folder in Explorer...

               "RuntimeLibrariesPoseHouse on suburb"
    

Is it possible for a script to fetch the full path of a Figure, once it is loaded to the Poser scene?



Learn the Secrets of Poser 11 and Line-art Filters.