Forum: Poser Python Scripting


Subject: What path is used for actor.Load/SaveMaterialCollection(FileName) ?

3dcheapskate opened this issue on Jun 14, 2022 ยท 16 posts


3dcheapskate posted Sun, 19 June 2022 at 10:55 AM

Found the missing saved files !

Poser(Python) saved them to C:\Users\Public\Documents\Poser 9 Content*. 
Not the runtime subfolder of that, but directly into that folder. So if you call mat.SaveMaterialSet(filenameonlywithoutpath), as per the manual, it puts the MT5/MZ5 in the same folder as your runtime folder, which is NOT where anybody would want it.


*which is where the default Poser 9 content was installed. And that begs the question, why does my library preferences file say this ?

<?xml version="1.0" encoding="UTF-8"?>
<!-- LibraryPreferences. -->
<!-- Created: Sat Jun 11 23:41:33 2022 -->
<LibraryPreferences curFolder="0"  version="1"  previewNum="100"  limitPreview="0"  doubleClickReplace="0" >
<ContentFolder folder="C:\Program Files (x86)\Smith Micro\Poser 9\Runtime\libraries"  index="0"  searchIndexed="1" />
<ContentFolder folder="C:\Program Files (x86)\Smith Micro\Poser 9\Downloads\Runtime\libraries"  index="1"  searchIndexed="1" />
<CollectionFolder folder="Runtime\libraries\Collections"  index="0" />
</LibraryPreferences>

(I wonder if that explains the problem I was having with P3DO ?)


The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.

*also available in ShareCG, DAZ, and HiveWire3D flavours (the DeviantArt and CGBytes flavour have been discontinued).