question

royjuventus29 avatar image
0 Likes"
royjuventus29 asked Jason Lightfoot answered

3D geometry is not updated in animation although I have changed the path

Hello, I would like to change a robot's geometry, and I have written the script as follows. After executing this code, the 3D shape path of each joint has changed but the robot still looks the same. Is there another command we need to use to update the 3D geometry?

problem.jpg

FlexSim 24.1.0
flexscriptanimation
problem.jpg (138.3 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
0 Likes"
Jason Lightfoot answered

Instead of setting the node value directly try

joint.setProperty("Shape", filePath);
joint.applyProperties("Shape");

If you don't see the shapes in the list of media try:

applicationcommand("reloadmedia")



· 1
5 |100000

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

royjuventus29 avatar image royjuventus29 commented ·

It works, thank you!

0 Likes 0 ·