Forum: Poser - OFFICIAL


Subject: How do I reset hidden variable to 1 for empty morph channels on all body parts?

NightmareHero opened this issue on Jan 10, 2011 · 2 posts


markschum posted Mon, 10 January 2011 at 3:06 PM

either edit the cr2 using wordpad or similar and find the morph channel and change hidden 0 to hidden 1 ,

or heres a script

set morphs with 0 deltas hidden

import  poser
scn = poser.Scene()
fig = scn.CurrentFigure()
acts = fig.Actors()
for act in acts:
    print act.Name()
    parms = act.Parameters()
    if parms:
        for parm in parms:
            if parm.IsMorphTarget() and (parm.Hidden() == 0):
                d1 = parm.MorphTargetDelta(0)
                if d1:
                    parm.SetHidden(1)
                    print "Hiding  -  " + parm.Name()
 print "Done"

 

there may be a better way, this tests for a parameter dial that is not already hidden and which is a morphtarget , looks for a delta and if there isnt one it hides the dial.

This only works on the copy in memory , so you have to save the figure back to the library. I suggest saving it with a new name until you are sure its worked correctly.

The script lists each body part as it runs , and lists "Hiding - parameter name" if it hides a dial.

It works on the current selected figure.

copy of the script attached, rename ot ftom .txt to .py