Softimage Forum (Read Only)
Welcome to Autodesk’s Softimage Forums. Share your knowledge, ask questions, and explore popular Softimage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[WTA]get information keytangent in fcurve-Python

1 REPLY 1
Reply
Message 1 of 2
Anonymous
319 Views, 1 Reply

[WTA]get information keytangent in fcurve-Python

hello...

how to get Angle of R/L Slope and Length of R/L Slope information in aniation editor with python code.
Any ideas?

thx
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

From the sdk, rewritten for python, but hooked up to the active selection instead of a script generated object.



from win32com.client import constants

oSelection = Application.Selection
print oSelection
oParams = oSelection.parameters
for oParam in oParams:
if str(oParam.source) == "FCurve":
print str(oParam.source)
for k in oParam.source.Keys:
print oParam.name
print " Value: " + str(k.Value)
print " Locked: " + str(k.Locked)
print " Left: " + str(k.Left)
print " Right: " + str(k.Right)
print " LeftTanX: " + str(k.LeftTanX)
print " LeftTanY: " + str(k.LeftTanY)
print " RightTanX: " + str(k.RightTanX)
print " RightTanY: " + str(k.RightTanY)
print " Interpolation: " + str(k.Interpolation)
print " Constraint(constants.siParameterConstraint): " + str(k.Constraint(constants.siParameterConstraint))
print " Time: " + str(k.Time)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report