Forum: Poser - OFFICIAL


Subject: Removing unused material zones?

Roy G opened this issue on Feb 22, 2010 · 12 posts


Roy G posted Mon, 22 February 2010 at 6:18 AM

Every once in awhile I’m, not paying attention and I apply a MAT pose to the wrong figure. What then happens is that whole slew of invalid material zones get attached to the wrong figure. Which makess the material room a nightmare.

Is there a python script that will look at the figures obj file, see what the valid material zones are, and then remove all of the zones that don’t belong?

I hate to admit it, but I would probably use this script a lot.


RobynsVeil posted Mon, 22 February 2010 at 6:23 AM

I use Poser File Editor for that exact purpose, among others. Not free, but it does do that (and a bazzillion other things). I'm sure there's a freebie out there, tho...

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


PhilC posted Mon, 22 February 2010 at 6:27 AM

You can remove them manually using John Stallings free CR2 editor.
http://groups.yahoo.com/group/PoserTECH/ 

Poser Pocket Knife includes a tool to do it automatically.


Roy G posted Mon, 22 February 2010 at 7:32 AM

Thanks for the replies, I do have Poser file editor, and it is excellent, and it will remove the extra materials.

I was just hoping for a way to do this from inside Poser to save time. It would be so nice to just run a script to fix my error.

I'm considering Poser Pocket Knife.


bagginsbill posted Mon, 22 February 2010 at 10:24 AM

SM did not expose a "delete material group" function in the Python interface, so no there is no way to do it through the Python API.

However, while I'm not offering to do so, a Python program can be written to do exactly what you described. Python can read and write files, regardless of whether it is in Poser or not. So Python can re-write the file sans the offending material groups. Such a program could also be written in C, C++, Java, C#, Fortran, Cobol, etc. In other words, a computer program can do it. But I don't know of any that do.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


PhilC posted Mon, 22 February 2010 at 11:09 AM

The Poser Pocket Knife Python script will compare the materials declared in the figure's CR2 file with those present in the figure's OBJ file and delete the surplus. It is a one button click performed within Poser. It works in much the way bagginsbill describes.

Poser Pocket Knife comes bundled with a stand alone Poser file editor named "pz3edit" also containing this feature. 


bagginsbill posted Mon, 22 February 2010 at 11:20 AM

So there ya go. PhilC is da man when it comes to Poser workflow enhancement.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


Roy G posted Mon, 22 February 2010 at 11:22 AM

Thank you guys.


Dizzi posted Mon, 22 February 2010 at 11:55 AM

That's why I usually load Mat Poses as Material Collections: Poser will ask if it should create the material zones :-)



Roy G posted Mon, 22 February 2010 at 12:27 PM

That's right Dizzi, MAT poses are really kind of a hack. But they are still what's supplied most often by the venders.

I would prefer to deal with Material Collections as that's really where materials belong I think.


Dizzi posted Mon, 22 February 2010 at 12:56 PM

Just changing the extension from pz2 to mc6 will bring the dialog up, so with Poser 8 you don't have to move the files around :-) 



Natolii posted Thu, 25 February 2010 at 2:57 PM

Keeping fingers crossed on this one...

Bingo.

Works, Thanks Roy for pointing me here.

I grabbed CR2 Editor from here
http://www.morphography.uk.vu/dlutility.html