Message 1 of 3

Not applicable
08-21-2020
09:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
1) Are ball joint Euler angles accessible as parameters? Can't find parameter names.
2) Should angles be accessible with something like this? What attribute extracts the value of the property: yaw ?
# Extract yaw, pitch and roll angles for a ball joint named 'Ball Joint'
ballJoint = root.joints.itemByName('Ball Joint')
yaw = adsk.fusion.BallJointMotion.yawValue
pitch = adsk.fusion.BallJointMotion.pitchValue
roll = adsk.fusion.BallJointMotion.rollValue
yawMsg = 'Yaw = {:.3f}°'.format(math.degrees(yaw.???))
pitchMsg = 'Pitch = {:.3f}°'.format(math.degrees(pitch.???))
rollMsg = 'Roll = {:.3f}°'.format(math.degrees(roll.???))
Thanks
Solved! Go to Solution.