Align position to center of picked object and rotate it to bounding box

Hey everyone,

I tried but failed to create a script that changes the plates of f.e. a Shelf to my new modeled plate.

The script should change the plates of the shelf and align new plates to it, but should look to the bounding box of the old plates, its not enough to rotate in local mode, because the plates of the old shelf are been detached, so the axis is not correct anymore.

it is not necessary to scale to old plates, the new plates just need the right rotation and center position of the old plates from the shelf.

thx
Dragan

AttachmentSize
script_wanted.jpg508.81 KB

Comments

Comment viewing options

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

...

try 3-Point-align script http://www.breidt.net/scripts/index.html#3ptalign

bga

Dragan_ilic's picture

cool script but with it you

cool script but with it you must prepare every plate by hand, i have found a script that put the plates on the right place (look at attached images) but dont rotate it based on the bounding box length of the old plates.
I have attached a new image, i hope it presents my problem better :)

Thx

AttachmentSize
script_wanted_2.jpg 1002.23 KB

Comment viewing options

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