Is there a way to change the rotational centroid of a component depending on the selected animation?

Is there a way to change the rotational centroid of a component depending on the selected animation?

guiroehe
Collaborator Collaborator
133 Views
4 Replies
Message 1 of 5

Is there a way to change the rotational centroid of a component depending on the selected animation?

guiroehe
Collaborator
Collaborator

Hello,

 

when animating objects, components might require different references (e.g. rotational centroid) depending on the selected animation. It seems the rotational centroid is tied to the component, not the component + animation pair. Is there a way to change the position of the rotational centroid so different animations can use different centroids for the same component?

 

If not, what is the alternative to that?

 

Thank you.

0 Likes
Accepted solutions (1)
134 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

For any object you can set the value of the "centroid" node to two and add three subnodes that then control the relative position of the centroid along the object's x-, y- and z-axis. For objects added as components in the animation editor this should be set by default. The values can be changed during the model run. In the example the model the same animation is run twice with different positions of the centroid.

moehlmann_fe_0-1754894377683.png

 

Message 3 of 5

guiroehe
Collaborator
Collaborator

Hi, @moehlmann_fe ,
thank you.

My mindset was looking for a solution inside the animation environment, but yours works just fine!

Thank you once more for your clear and prompt solutions!

0 Likes
Message 4 of 5

moehlmann_fe
Enthusiast
Enthusiast

I just remembered to check: You can use "centroid(object)" to directly access the centroid node without needing to use ".find()".

0 Likes
Message 5 of 5

joerg_vogel_HsH
Mentor
Mentor

Any property in light blue in an attribute tree is accessible by nodename(treenode reference)