Snarlygribbly opened this issue on Aug 10, 2012 ยท 3 posts
Snarlygribbly posted Fri, 10 August 2012 at 5:45 AM
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/
PhilC posted Fri, 10 August 2012 at 6:11 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)
Snarlygribbly posted Fri, 10 August 2012 at 6:20 AM
Ha ha! That simple!
Thanks so much Phil - I was wildly overthinking it :-D
It all works for me too now: you're a star.
Free stuff @ https://poser.cobrablade.net/