question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Patrick Cloutier commented

How to create new animation based on existing animation clip

pat-animation.fsmIn the attached model, I am trying to have the operator type at the keyboard at some moments of the simulation and just stand at other times. I run the animation "EnterCode" and then it defaults back to its "Stand" animation.

The problem I have is that the leg and feet positions do not match in both animations so the result looks clunky.

The solution I thought is to copy-paste the "EnterCode" animation, give it the name "Stand2" and then edit(shorten) that animation to keep just the beginning or the end when the feet are properly placed. So I would end up with a "Stand2" animation which works well with the "EnterCode"

I did the copy-paste and rename but how do I shorten the animation?

FlexSim 19.0.0
animation
pat-animation.fsm (20.8 MiB)
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

·
Phil BoBo avatar image
3 Likes"
Phil BoBo answered Patrick Cloutier commented

To get the result you want, you can simply add a Custom Code activity that stops the default "Stand" animation. pat-animation-pb1.fsm

If the "Stand" animation is stopped, then the operator will be doing nothing and remain in the last pose of the "EnterCode" animation until it is told to start another animation.

As to your question, you can add a new animation clip using the Edit Animation Clips window:

Follow these 6 steps to add a new clip and use it:


anim-clip-2.png (266.6 KiB)
anim-clip-1.png (18.4 KiB)
· 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.

Patrick Cloutier avatar image Patrick Cloutier commented ·

Thanks. Both methods work.

0 Likes 0 ·

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.