question

Tomi Kosunen avatar image
0 Likes"
Tomi Kosunen asked Jason Lightfoot edited

Kinematics

Hi. Can't get the kinematics work. What is the Date Node under Create Kinematics? It is some kind of data node and as far as I understand, it can be any label for example. If I set it to token.kinematics, it creates "Kinematic data" label to token and works fine. How can I create similar label to any object (like 3D shape)? If I set Create Kinematics->Data Node to "token.object.kinematics", I get an error that Label does not exist. If I create the label, it says "Invalid data node".kinematics.fsm

FlexSim 22.0.0
kinematics with process flow
kinematics.fsm (30.0 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot edited

You should use this to create the label in Create Kinematics

token.object.labels.assert("kinematics")

and then this to Apply Kinematics:

token.object.labels["kinematics"]

The problem with the syntax token.object.kinematics is that it's trying to evaluate that label and use the result as a pointer to the kinematic node. So you could add another label "kinnode", type pointer, pointing to the "kinematics" label and then token.object.kinnode would work.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.