Dynamic geo alignment/layout?

Hey,

I want to create a dynamic geometry layout. Imagine you have e.g. 5 geo COMPS with rectangle SOPs inside. All aligned in a single row. Now if you scale some of the rectangles in x I would like to automatically push/pull the other rectangles. Here’s a very brute force example in SOPs dynamicAlignment.toe (4.4 KB)

Any better ideas? Physics seem like an overkilI for such task, but maybe I’m mistaken.

Take a look at this approach.

base_auto_align_box_sops.tox (1.1 KB)

Uses a Copy SOP and stamps. The biggest trick here is correctly slicing and summing the array of vals to give you the correct offsets.

Same principles should work for instances.

Good idea about the copy sop. Thx!