panthera icon indicating copy to clipboard operation
panthera copied to clipboard

Command "Wrap to node"

Open astrochili opened this issue 1 year ago • 5 comments

In the hierarchy tree, it would be convenient to select a list of nodes, right-click and select "Wrap to node", which will create a node and place all selected nodes in it without global position offset.

This feature allows to complicate the hierarchy when an intermediate node is needed.

astrochili avatar Jul 24 '24 16:07 astrochili

LIke this feature and got some tests ealier to "group" and "ungroup" nodes, but since most users do export from Defold files, it's no very useful until there is an import function

Insality avatar Jul 24 '24 16:07 Insality

But I'm sure it will be easy to add ;)

Insality avatar Jul 24 '24 16:07 Insality

Add the most simple implementation, you can check in at https://github.com/Insality/panthera/releases/tag/editor.804

Hotkeys: CMD + G and Shift + CMD + G (or ctrl instead of CMD)

It just make a wrap for selected nodes or delete parent if ungroup. No any additional checks and can be weird if trying to group the nodes from different hierarchy, but should be okay at start

Insality avatar Aug 03 '24 10:08 Insality

Grouping works fine 👍 It also seems to be a good idea to add this command to the context menu.

Ungrouping works in a little bit unintuitive way, as selecting a node affects the node above it. It would be more intuitive to call this function by selecting the node you want to ungroup.

astrochili avatar Aug 03 '24 12:08 astrochili

Good notice! WIll check and update later

Insality avatar Aug 03 '24 13:08 Insality