scale an object in the coordinate system of another object.

Hi everyone

There is the box $Box001 and the point $Point001 in the scene.
if you write such an expression

scale $Box001 [2,2,2],

the box is scaled relative to the PIVOT point.
But if we translate the coordinate system,

toolMode.coordsys $Point001
max scale

then when you scale the box $Box001, there is both a change in scale and position of the box, relative to the point $Point001.

Is there a way to record such a transformation programmatically?

For example

in coordsys $Point001 $Box001.scale = [2,2,2]

But this way of writing only changes the scale...

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Any's picture

Thanks so much, Jahman!!!

Thanks so much, Jahman!!!

jahman's picture

.

use about context

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.