Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How can I get informed about joint value changes? (Python)

Anonymous

How can I get informed about joint value changes? (Python)

Anonymous
Not applicable

Is it possible to get informed by an event about joint value changes, such as for example the slideValue of the SliderJointMotion?

 

Or would it be more suitable to poll the current value in a background thread?

 

EDIT:

I  just saw that someone actually tried something similar: https://forums.autodesk.com/t5/fusion-360-api-and-scripts/real-time-robotic-control/td-p/6377717

 

But I don't necessarily need real-time updates of the value when driving the joints. Although this would be a neat feature.

0 Likes
Reply
Accepted solutions (2)
873 Views
4 Replies
Replies (4)

marshaltu
Autodesk
Autodesk
Accepted solution

Hello,

 

Unfortunately there is no event to watch joint value changes. It would be doable to poll the current value in background. Theoretically some API calls would not work in worker thread. Please try custom event if you run into the issue.

 

http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-F9FD4A6D-C59F-4176-9003-CE04F7558CCC

 

Thanks,

Marshal 



Marshal Tu
Fusion Developer
>
1 Like

Anonymous
Not applicable
Okay, so then polling is the way to go forward. Do you know if Fusion 360 supports running normal Python threads in the background? This would be useful for communication with the outside world, else I will need to build some kind of connectionless communication interface to an external application (whatever that means under Windows).
0 Likes

marshaltu
Autodesk
Autodesk
Accepted solution

Hello,

 

Yes, I think so. You can probably refer to the following sample:

 

http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-85edd118-c2a4-11e6-b401-3417ebc87622

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
1 Like

Anonymous
Not applicable
Excellent, this works like a charm. I have a basic demo sending the current joint position to Machinekit up and running, more should follow soon. In theory, this will enable programming machines directly via Fusion 360.
1 Like