Sub Groups within Groups

Hi, I’m trying to make my script nicely annotated for other users. Grouping clusters of components and changing the group title works well, but I’d like to set further sub-groups within my main group. It seems any title I then apply to the subgroup affects the main group instead?

Is there a suggested way to annotate scripts?

Try Objectivism Plugin

1 Like

Thanks, sounds good. Is there a way to achieve it without plugins? Given that the script might be opened on different machines, I’m trying to avoid reliance on plugins as much as possible.

to be clear, you want orderly grouping and annotation? and by annotation you mean naming of these groups/clusters?

Yep, a bit like a header comment on a function, with the ability to then comment individual lines.

Can you clarify on how you change the group title? what are you literally doing? Just so I can understand better.

I’ve grouped this whole chunk to explain the overall purpose, but I’d also like to comment the two components I’ve attempted to ‘subgroup’ to say they’re removing the Excel header row. But it seems like I can’t apply a title / comment to the subgroup.

Oh, just use Scribble component (Include the Scribbled text to the group). If that doesn’t work then Cluster it (Select components, right click and Cluster), then name it.

Cool, thanks.

Hi @Derek4 ,

Am I misunderstanding or are you simply trying to name individual groups like this?

-Ctrl(Cmd)+G for group on any object or objects to group them
-Right-Click on the group rectangle and input a name in the blank text field

image

In my opinion this is much more legible over scribbles and has the added benefit of allowing you to select the group or the objects within the group and move them around the canvas while retaining the naming text you assigned to it.

Just my food for thought,

Cheers!

1 Like

Thanks, that’s exactly what I was after. I was struggling to get it to work as once I had made the overall grouping, I couldn’t find a way to select / edit the smaller sub-groups.

Wondering now if it’s to do with the display order on my canvas - the larger group was blocking the selection.

1 Like

Yes that’s exactly it, by using Ctrl+B, you are sending the larger group to the back of the display order.

Happy it worked for you!

I wish more people commented and organized their code :grin:

I can never understand how people don’t! When you come back to it a year later it’s far easier to get into if you organise your thoughts a bit.

1 Like

Completely agree