Node location in a Group

Hi,

I have a bunch of nodes in a group and i want to locate them in a ceratin position wihin the group.

How are the nodes(x,y) location is relation to the group(x,y) location ?

Does the group(x,y) plays as the (0,0) points for its nodes ?

Regards,

Tany

No, every Part‘s location (or position) is in document coordinates. It is possible to move (i.e. change the location of) a member Node of a Group independently of the Group, and it is possible to move a Group without moving its member Nodes. However, the Group.move method also moves all of its member Parts by the same offset.

OK,

should i locate the node in the group by calling node.moveTo(x,y) or bind the “location” or “position” ?

It depends on the circumstances and the intention.

It is more commonplace to bind the Part.location property, since that’s more flexible and more likely to be what people want to work with.

Does to the Group template should be “Spot” ?

That depends entirely on the visual design you want your Groups to have. It doesn’t really affect the positioning of Groups and their member Nodes.

Many Group templates include a Placeholder, so when the Group is expanded its Placeholder (actually the members’ locations and sizes) determines the location and size of the Group. But when a Group is collapsed, then the Binding of the Group.location property matters.

Have you looked at the designs/templates/usage of Groups in the documentation and samples?