[Closed] Scaling object at root level
I know it’s a bad idea so that’s why i’m trying to find a solution. I need to setup a few pairs of box with parenting and allow the user to scale them freely as them want.
Using the xform manually is kinda slow as you have to open it, select the gizmo, scale, close it select a new box…
I tried connecting a change Handler to control the gizmo scale but as I expected it became unmanageable and slow to process.
Has anyone ever tried that? is there a convenient and intuitive solution for that?
“a few pairs of box with parenting and allow the user to scale them freely” is unclear.
If you want the child’s scale to be effected by the parent’s scale you can turn of the inheritance – but the child’s position will scale with the parent.
If you want he child’s scale and position to be unaffected by the parent’s scale you may want to use a different arrangement than a simple parenting.
(
--make 2 boxes and a point helper
boxa=Box pos:[0,0,0]
boxb=Box pos:[50,0,0]
p=point()
--parent box b to point
boxb.parent=p
--pos and rot constrain point to box a
p.pos.controller=position_constraint()
p.pos.controller.appendTarget boxa 50
p.rotation.controller=orientation_constraint()
p.rotation.controller.appendTarget boxa 50
)