question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Matthew Gillespie commented

Remove patient's sit idle animation

Hi there,

In my model, I’d like to remove the wiggling behavior of patients when they sit idle. I did that before in previous versions by going to the Man/Woman flow item bin > More Visuals> Edit and removed “SitIdle2” animation. When I do this in the current version, I see the model is running but I’m getting constant errors as shown below. How can I resolve this?


Error: No animation named "SitIdle2" found for "Patient Flow_FS_UPDT2_42". At run animation activity "Start Animation" in process flow "Enter Location".time: 65.352991 exception: FlexScript exception: MODEL:/Tools/People/Flows/Activities/Enter Location/More Instructions?>variables/decision

Error at time 70: No animation named "SitIdle2" found for "Patient Flow_FS_UPDT2_28". At run animation activity "Start Animation" in process flow "Enter Location".time: 69.849753 exception: FlexScript exception: Invalid down cast. Object is not an instance of the target type. at MODEL:/Tools/People/Flows/Activities/Enter Location/More Instructions?>variables/decision

FlexSim 22.0.0
flowitem binsit idlewiggle
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
2 Likes"
Matthew Gillespie answered Matthew Gillespie commented

You shouldn't delete the SitIdle2 animation. Either change the Enter Instructions of the chairs so they don't call that animation or remove the animation clip from the SitIdle2 animations.

Change Enter Instructions

Here's how to remove the idle animation from all the chairs in a MultiLocation object. First click on the MultiLocation and check the Edit Mode box. Then click on one of the chairs and press the Edit Enter Locations button.

Change the Template to Custom then scroll to the bottom and press the red X to remove the last instruction that starts the idle animations.

1638992601153.png

You can then copy these modified instruction to all the other chairs by selecting all the other chairs in red (using Shift-lasso or Ctrl-clicking), clicking on the first chair you modified so that it's highlighted yellow, and then clicking the copy button next to the Edit Enter Instructions button:

1638992893528.png

Now none of the chairs in this waiting room will ask patients to play an idle animation.

Remove Animation Clip

Right click on the Man shape in the FlowItem Bin and select Animations to open the animator window. Choose SitIdle2 from the combo box at the bottom. Right click on one of black diamonds in the animation clip and then click the Delete key on the keyboard.

1638993239422.png

This deletes the animation clip and you can now close the animator.


1638992601153.png (24.3 KiB)
1638992893528.png (83.7 KiB)
1638993239422.png (57.9 KiB)
· 2
5 |100000

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

Maryam H2 avatar image Maryam H2 commented ·
@Matthew Gillespie Thanks! that worked.

Is there any way to do the first step( Edit and Copy Enter Instruction) for several multi-locations at once or should it be done one by one?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Maryam H2 commented ·
@Maryam H2 Yes, just select all the objects you want to change in red and then push the copy to selected button.
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.