ElZagna opened this issue on Nov 16, 2012 · 19 posts
ElZagna posted Fri, 16 November 2012 at 2:30 PM
Is there a Python script that will highlight only the parameter dials that are non-zero. Alternatively the script could hide all the zero dials.
I know there are scripts that can hide and show dials but they require you to manually go through them all. I was hoping for something more automated.
OS: Windows 10 64-bit, Poser: 10
lowpoly posted Fri, 16 November 2012 at 3:41 PM
Did you need something bigger?
PhilC posted Fri, 16 November 2012 at 4:23 PM
What do you mean by highlight?
lowpoly posted Fri, 16 November 2012 at 4:35 PM
I changed this one to red for better visibilty
markschum posted Fri, 16 November 2012 at 4:56 PM
import string
scene = poser.Scene()
fig = scene.CurrentFigure()
actors = fig.Actors()
for actor in actors:
if actor.IsBodyPart():
parms = actor.Parameters()
for parm in parms:
if parm.IsMorphTarget():
if parm.Value() == 0:
parm.Hidden(1)
change parm.Hidden to 0 to show the dial again.
ElZagna posted Fri, 16 November 2012 at 6:51 PM
OS: Windows 10 64-bit, Poser: 10
ElZagna posted Fri, 16 November 2012 at 7:10 PM
In fact nothing I do to any of those psd files has any affect on the UI.
OS: Windows 10 64-bit, Poser: 10
lowpoly posted Fri, 16 November 2012 at 7:15 PM
Apparently it is a feature of the "Pro" versions. I checked it in PP2010 and PP2012 and works as expected, but not in vanilla P8.
ElZagna posted Fri, 16 November 2012 at 10:48 PM
I just checked out the product comparisons, and it looks like that is a feature specific to the Pro versions.
OS: Windows 10 64-bit, Poser: 10
primorge posted Sat, 17 November 2012 at 2:48 AM
Yep, the pros get the dots.
primorge posted Sat, 17 November 2012 at 3:05 AM
Oh BTW, the python script above does not work in Poser 8... not on a Mac, at least.
... yes, I dropped the .txt extension. Tried it both from the Scripts Menu and File: Run Python Script. Nada.
ElZagna posted Sat, 17 November 2012 at 10:02 AM
Thanks, primorge. I thought I was doing something wrong. The script seems to work fine, it's just that nothing gets hidden.
OS: Windows 10 64-bit, Poser: 10
mikegg posted Sat, 17 November 2012 at 10:16 AM
Lowpoly, could you be a little more specific on how to do this? I found the entry but wasn't sure what to add to change the color. Whats the exact way to change from gray to red.
Thanks,
Mike
ElZagna posted Sat, 17 November 2012 at 10:30 AM
Primogre & markschum - Change the last line to parm.SetHidden(1)
OS: Windows 10 64-bit, Poser: 10
lowpoly posted Sat, 17 November 2012 at 11:29 AM
I used GIMP in this example, but you can use any 2D image program that will handle a .psd
I select a brush, make it 10 pixel wide and colored red.
Select the layer that has indicator and put drop of red where grey dot is
primorge posted Sat, 17 November 2012 at 1:26 PM
Thanks, ELZagna... certainly a useful script, I'll test your suggestion.
ElZagna posted Sat, 17 November 2012 at 2:31 PM
Also if you want to hide the Body parms then you can add a test for "value parameters":
...
if parm.IsMorphTarget() or parm.IsValueParameter():
...
OS: Windows 10 64-bit, Poser: 10
mikegg posted Sat, 17 November 2012 at 3:05 PM
OK, thanks. Really easier than I thought. I opened it in photoshop (duh) and there it was.
Mike
markschum posted Sat, 17 November 2012 at 3:06 PM
oops, my bad