question

Junwoo Kim avatar image
0 Likes"
Junwoo Kim asked Junwoo Kim commented

How to shuffle items already stacked in floorstorage?

Is there a way or function to rearrange slot items already stacked in FloorStorage?

If items are stacked from the bottom in slots 1,2,3,4, I want to stack them in order of 2,1,4,3. I need a simple example. Thank you.셔플.png

FlexSim 23.2.0
floorstorageflexsim scriptrearrange
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 Junwoo Kim commented
· 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.

Felix Möhlmann avatar image Felix Möhlmann commented ·

To provide a little more guidance:

To change the order of items in a slot get a reference to the respective slot item. Cast the slot item as a treenode and set its rank. Then use "slot.restack()" to order the items in the 3d model based on the new node ranking.

reorder-slot.fsm

1 Like 1 ·
reorder-slot.fsm (35.5 KiB)
Junwoo Kim avatar image Junwoo Kim Felix Möhlmann commented ·

Thank you, it helped a lot !

0 Likes 0 ·