question

Maíra A avatar image
0 Likes"
Maíra A asked Maíra A commented

How can i show all the flowitens during the operator transport?

I did an animation to insert an equipament with the operator, and to put at the correct position i created a trigger. However, the code shows only one flowitem during the transport, what can i do to show all them?


test_operator.fsm

FlexSim 19.1.2
operatoranimationflexsim 19.1.2triggerscustomcode
test-operator.fsm (685.6 KiB)
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Maíra A commented
setloc(item,1,0.1,0.05+(current.subnodes.length-1)*item.size.z);

you have to set a different location for every loaded item. Your code put all loaded items to the same location. current.subnodes.length returns the number of loaded items in your operator

· 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.

Maíra A avatar image Maíra A commented ·

Perfect! This was exclatly what i needed! Thank you so much!

0 Likes 0 ·