question

Bruno Ricardo BM avatar image
0 Likes"
Bruno Ricardo BM asked Matthew Gillespie answered

Problem with Walk Loaded animation

Hi,

I was working in a model and when I changed the Walk Loaded option default for another one and then I tried to change his animation for other with PF "Run animation" this just doesn't work. I'm not sure if this is a bug.

(Operator 2)

1651691404479.png

The only way to be able to have 2 or more diferents ways of walk loaded is when I left the default option.

(Operator 1)
1651690276684.png


diferents travel animation.fsm

FlexSim 22.1.1
travel animation
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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

Each operator in this model has 2 animations running at the same time during the first travel. This is because the Start Animation activity starts animation 17 before the travel, and then the operator starts the animation listed on its walkLoadedAnimation variable when it starts the travel task. Whenever more than one animation is running at the same time it looks like just the last one in the list is running since that's the one that updated the operator most recently.

Rather than starting a new animation on the operators you should set the walkLoadedAnimation variable before the travel task and then the operator will start and stop that animation. You can do this with the setVariable method:

Object operator = token.Operator;
operator.setVariable("walkLoadedAnimation", "Push2");

diferents-travel-animation_1.fsm


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.