rjbourc opened this issue on Jan 11, 2005 ยท 17 posts
an0malaus posted Sat, 15 January 2005 at 11:53 PM
Thanks EnglishBob. Got MinFig (thanks to Les Bentley BTW), have a nice bit of script for parenting the top level orphans to the new figure (CR2 file created and loaded by the script on the fly), preserving any prop heirarchy they might have below them. BUT, the internal names of the props do not receive the expected :# suffix indicating they are parented, though they obviously appear and act so in the interim heirarchy before I orphan them again. This appears to restrict the ability of the MAT Pose from modifying their materials list. I've tried manually adding the figure number suffix to the prop name in the MAT file, but it makes no difference, the pose doesn't take and there's no Python interface to allow the prop's internal name to be modified. Short, that is, of saving the scene file, changing the prop reference to actor and reloading, but then you might as well save the scene and clear the materials directly in the scene file before reverting the document. Ah well, there's usually only the GROUND prop unparented in the default scene and any prop loaded later and manually parented to ... [THINKS]... [HACKS] [TESTS] [SUCCEEDS - like a budgie with no beak] We have a Winner!!! If the MAT Pose file uses the keyword actor, rather than prop, it can be applied to unparented scene props like GROUND, YAY!!! Attached is ClearAllMaterials1.3.py which successfully clears all figure materials and parented or unparented prop or actor materials. No props or actors had their parentage modified (though it was questioned ;-)) during the running of this script. Enjoy, and post here if you do have any problems with it.
Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.