Josiah opened this issue on Nov 14, 2002 ยท 4 posts
ockham posted Thu, 14 November 2002 at 11:13 AM
actor = scene.Actor("Dolly Camera") v = actor.Parameter("DollyY") w = actor.ParameterByCode(poser.kParmCodeYTRAN) d = w + 0.01 v.SetValue(d) On this one, I can see what's wrong. In lines 2 and 3 you're getting two different ParmType variables, but you're not really getting a Value. You then modify the second ParmType and put the incremented value back in the first one. Here's how it should work. I use the method below for altering paramters constantly, though I haven't tried it with cameras. Note that the addition has to be done on the -value- of the parameter, not with the variable p that represents the parameter dial itself. actor = scene.Actor("Dolly Camera") p = actor.Parameter("DollyY") p.SetValue(p.Value() + 0.01)