Notifications
Clear all

[Closed] copy mirror options keeping the scale

How to apply mirror options from an abject B, but to keep the scale of the current object A!
I need somehow to find out if object B is mirrored and then to apply the same type of mirroring to object A, but not to change it’s size!

Please please help me! It’s very important for me!

3 Replies
1 Reply
(@denist)
Joined: 2 years ago

Posts: 0

search this forum … it has a similar discussions. for example http://forums.cgsociety.org/showthread.php?f=98&t=1136074&highlight=mirror

Maybe i don’t understand but,

doesn’t mirror keep the same scale by default?

can you elaborate and show the code you’re working with?

But how to find the mirror matrix of object B?

rootGroup is object B
o is object A

for o in objs do
 (
     ...
     tm = o.transform * (inverse rootGroup.transform)
     o.transform = tm*destinationGroups[i].transform
     ...
 )
 

If I save the previous scale of Object A then I loose the mirror option:

for o in objs do
 (
     ...
       parentscale = o.scale
       tm = o.transform * (inverse rootGroup.transform)
       o.transform = tm*destinationGroups[i].transform
       o.scale = parentscale 
     ...
 )