Message 1 of 2
joint TimelineObject.rollTo(True) errors with Associated feature is invalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Im Trying to lookup some joint information via the api.
I cant post my file as it goes against my works NDA.
im looping over joints, in my scene so i can export the info out to a urdf file.
i can get the rotation limits of my revolutes no issue, but when i what to find there positions i get the error.
joint.jointMotion.rotationLimits
so for each joint im running:
joint.timelineObject.rollTo(True)
joint_dict['parent'] = joint.occurrenceTwo.name
joint_dict['child'] = joint.occurrenceOne.name
joint_dict['parent_rel_pos'] =joint.geometryOrOriginOne.origin.asArray()
joint_dict['child_rel_pos'] =joint.geometryOrOriginTwo.origin.asArray()
design.timeline.moveToEnd()
In this particular file i get the following error:
joint.timelineObject.rollTo(True)
File "C:\Users/monke/AppData/Local/Autodesk/webdeploy/production/b788673c90d05b91de61a3242d6fc03e30a0895b/Api/Python/packages\adsk\fusion.py", line 41326, in rollTo
return _fusion.TimelineObject_rollTo(self, rollBefore)
RuntimeError: 3 : Associated feature is invalid.
If i right click the joint in th tree and select find in timeline and then move the timeline manually it works.
in the file the joint works correctly.
The fusion file was created in the last 3 weeks, it has no relative links/ external linked files.
how can i debug what is wrong with the joint to get the above error?
Cheers
kym