Change state parent
in progress
David Khourshid
It should be possible to change the parent of a state. The state should be automatically placed in the best position that doesn't overlap sibling states.
Laura Kalbag
Merged in a post:
Wrap with parent command
David Khourshid
A state node should be able to have a context menu command "Wrap with parent" that creates a new parent state node for the selected state node.
Marcello Cosentino
I agree, it would be very useful an action to wrap a group of states (or the root state) into a new parent state without loosing the Visual Editor custom arrangement (eg: vscode extension). I ended up with a quite complex machine and it would be very time consuming to manually reorganize all of the elements. I tried changing the code but this way the visual editor makes an AutoLayout.
As an alternative to the context menu, it would be awesome to allow the user to drag on or more selected items into an existing state.
https://discord.com/channels/795785288994652170/808385662512267274/1103745636546908240
Laura Kalbag
Another useful option would be to select a collection of nodes and then right-click to create a new parent state around them.
Laura Kalbag
You can now change the parent of a state using the state details panel. Watch the video on how to do this in: https://youtu.be/aUhEdeIf_mQ?t=52
David Khourshid
in progress
David Khourshid
planned
Simon Flack
I just created drag and drop states and then saw this. Feel free to delete mine if it's a duplicate
John Archer
I guess the other proposal already covers that - supporting copy-pasting states basically does the thing
Laura Kalbag
I should also be able to drag child states into a new parent. Just had this issue where I created a complex machine and want to remove the parent state, but don’t want to spend all that time recreating the child states.