Ajax opened this issue on Aug 26, 2003 ยท 8 posts
Ajax posted Tue, 26 August 2003 at 7:40 AM
View Ajax's Gallery - View
Ajax's Freestuff - View
Ajax's Store -
Send Ajax a message
Netherworks posted Mon, 18 April 2005 at 6:07 PM
nickedshield posted Fri, 29 July 2005 at 7:43 PM
Thank you!!!! I just ran across this and it does exactly what I need. Works fine under Propack btw.
I must remember to remember what it was I had to remember.
infinity10 posted Fri, 29 July 2005 at 10:41 PM
Thanks ! I am very new at using Py scripts. Do I re-save with .py file extension ?
Eternal Hobbyist
nickedshield posted Fri, 29 July 2005 at 11:35 PM
Yes you do.
I must remember to remember what it was I had to remember.
an0malaus posted Thu, 11 August 2005 at 3:37 PM
@Ajax & others interested in saving poses with dial values without ERC influence, you might be interested in this python code fragment below from my own script for saving BODY and actor pose information. This doesn't require zeroing ERC channels in the saved pose files. def DialAndDelta(Morph): #print Morph.Name(), val1 = Morph.Value() # read value #print val1, Morph.SetValue(val1) # set same value val2 = Morph.Value() # get new value #print val2, delta = val2 - val1 # find FBM or JCM delta influence #print delta, val0 = val1 - delta # find original parameter dial value for this actor #print val0 Morph.SetValue(val0) # reset to original value return (val0, delta) Cheers, GeoffIX
Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.
an0malaus posted Thu, 11 August 2005 at 3:48 PM
Hmm, just looking at my code again, it struck me that though DialAndDelta would successfully extract ERC influences applied via the valueOpDeltaAdd/deltaAddDelta # method, it might not work as expected for valueOpTimes, valueOpDivideBy and valueOpDivideInto operators since they are non-linear and DialAndDelta uses simple linear regression math... Given that over 90% of the ERC I've seen from others and written myself uses valueOpDeltaAdd exclusively, that's probably not an issue, but I thought it worth noting. Returning a raw channel setting (dial value) is still definitely a method eF needs to provide for Poser Python to account for the non-linear operators.
Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.
Ajax posted Thu, 11 August 2005 at 6:29 PM
Wow! Thanks gwhicks! I'm kicking myself for not having thought of that. What a simple and elegant way of handling the problem. I agree, almost all the ERC out there uses the deltaAddDelta approach, so this would work for almost everything.
View Ajax's Gallery - View
Ajax's Freestuff - View
Ajax's Store -
Send Ajax a message