Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
'name' should be the full path to where you want the material saved to.
I think you'll find that it will save a PNG file along with it. At least it did for me.
import poser
import os
poserDir = os.path.split(poser.AppLocation())[0]
matFilePath = os.path.join(poserDir,"test.mt5")
poser.Scene().CurrentMaterial().SaveMaterialSet(matFilePath)
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
I'd like to save the current material as a Material Set ('.mt5') to a location of my choice, with an associated png thumbnail.
I see poser.Scene().CurrentMaterial().SaveMaterialSet('name') will save an .mt5 file, but without a png thumbnail and without allowing me to choose where ...
Any help would be most appreciated.
Thank you.
Free stuff @ https://poser.cobrablade.net/