How to limit movements and prevent scaling of objects in Fologram space?

Hi, is there a gumball function (or grasshopper script) for limiting interactive movement of objects in Fologram to planar directions? I’m trying to find a limit enable interactive movement of objects along a ground plane.

And is there a way to lock the scale of objects? So that interaction with objects in fologram space will not change their scale, but only their location in space.

Thank you!


Hi Sharil,

Objects can be moved, rotated and scaled with 6 degrees of freedom in Fologram by default. If you want to change this behaviour, e.g. constraining movement to a single axis, then you can build this logic yourself in grasshopper.

There are a few ways to do this. You can either use the normal movement mechanic to manipulate objects then snap objects back onto the nearest axis, or you can assign transforms to objects directly which will be faster.

Two examples:
Fologram Move and Constrain To (19.8 KB)
Fologram Move and Constrain To Axis - (24.7 KB)