Problem with Walk Loaded animation

Problem with Walk Loaded animation

bruno_bautista
Enthusiast Enthusiast
9 Views
1 Reply
Message 1 of 2

Problem with Walk Loaded animation

bruno_bautista
Enthusiast
Enthusiast

[ FlexSim 22.1.1 ]

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

0 Likes
Accepted solutions (1)
10 Views
1 Reply
Reply (1)
Message 2 of 2

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

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



Matthew Gillespie
FlexSim Software Developer

0 Likes