How to Animate with script?

How to Animate with script?

pavelviatkin94
Observer Observer
419 Views
1 Reply
Message 1 of 2

How to Animate with script?

pavelviatkin94
Observer
Observer

Hello community! I have a question relating to animating joint movement with a script. I want to write a script that will move my cylinder piston forward and backward. I know you can do this with a motion study, but motion study doesn't work for me. I want to connect a controller and control the piston manually. Does anybody have an idea how I can do this? Thanks.

0 Likes
420 Views
1 Reply
Reply (1)
Message 2 of 2

pavelviatkin94
Observer
Observer

Found the answer in this post https://modthemachine.typepad.com/my_weblog/2016/08/drive-robot-arm-in-fusion-update.html

Then I modified:

motion.rotationValue = motion.rotationValue + diffVal
And changed to:
motion.slideValue = motion.slideValue + diffVal
0 Likes