Forum: Poser - OFFICIAL


Subject: A script to change sensitivity values in all translation parameters for an entir

SkiddlyMcZ opened this issue on Sep 27, 2013 · 11 posts


markschum posted Sun, 29 September 2013 at 3:19 PM

I can amend it to do anything conformed or parented to the current figure or even everything in the scene. 

A prop is just an actor so you just need to change the bit that loops through actors.

like this

script set sensitivity for prop

import  poser
newval = 0.1
xt = poser.kParmCodeXTRAN
yt = poser.kParmCodeYTRAN
zt = poser.kParmCodeZTRAN
xr = poser.kParmCodeXROT
yr = poser.kParmCodeYROT
zr = poser.kParmCodeZROT
myparm = [xt,yt,zt,xr,yr,zr]
act = poser.Scene().CurrentActor()
print act.Name()
for p in myparm:
    cp = act.ParameterByCode(p)
    cp.SetSensitivity(newval)
print "Done"

this will crash if the current actor does not have tran and rotate parameters.