question

Gui Vaccaro avatar image
0 Likes"
Gui Vaccaro asked Gui Vaccaro commented

How to programatically change the operator's shape (male/female)?

Hello,
What is the current way to create an operator and change it's shape (male/female)? I saw old answers in the forum, but they do not seem to be valid for recent versions.

  1. changepersonvisuals(operatorObject, "Shape", 7);

and

  1. shapeindex(operatorObject) = 7;

do not seem to work to bring a female shape.

Thank you for any clarification!

FlexSim 25.0.0
shapemalefemaleflexsript
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

Sebastián Cañas avatar image
0 Likes"
Sebastián Cañas answered Gui Vaccaro commented

Check the code in the Custom Code activity. Change the code according to your needs. In this demo a female or male operator is being created based on the value of Parameter1.

Female_Male_Operator.fsm


· 3
5 |100000

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