scaling several objects at once

scaling several objects at once

Craig_Lamorte
Advocate Advocate
721 Views
4 Replies
Message 1 of 5

scaling several objects at once

Craig_Lamorte
Advocate
Advocate

Hi,

 

What would be the easiest way to link or enable several specific objects in my scene to be scaled all from scaling one object?

 

For example in my scene lets say i have a test_mesh, but i also have test_mesh2 and test_mesh3 which are duplicates of test_mesh.  I would like to enable it in my script so that if any one of these 3 are scaled, the other two (or however many duplicates I have) will scale the same amount as what the user is scaling.  There can not be any parent, since I would like to allow any of them to be scaled.

 

Thanks

0 Likes
722 Views
4 Replies
Replies (4)
Message 2 of 5

jordan.giboney
Autodesk Support
Autodesk Support

Hi @Craig_Lamorte

 

Thanks for posting! Are you looking for a script specifically, or would instancing these objects work? Creating objects as instances rather than direct copies means that any changes made would apply to all instances of that mesh. Here's a quick video that demos the process: How to Instance Geometry in Maya

 

Let me know if there is any other way I can help! 🙂 Happy to assist in any way I can.



Jordan Giboney
Technical Solutions Engineer | Media & Entertainment
Installation & Licensing forums | Contact product support | Autodesk AREA


Message 3 of 5

jordan.giboney
Autodesk Support
Autodesk Support

hi @Craig_Lamorte

 

Hope you are doing well 🙂 just wanted to check in and see how things were going. Did you have a chance to try out Instances? Does that strategy work for your project, or should we search for another solution?

 

Thanks for your time! Happy to help in any way I can!



Jordan Giboney
Technical Solutions Engineer | Media & Entertainment
Installation & Licensing forums | Contact product support | Autodesk AREA


0 Likes
Message 4 of 5

Craig_Lamorte
Advocate
Advocate

In this case I can't use instances.  And I would need the children to be able to change the attributes of the parent as well.  I did come up with a solution though..  I create 2 script jobs - One script job was for selectionChanged, which would give me what the use has selected, then I would start a scriptJob that would watch for the scaling of that object.  If it was scaled then it would scale all the same meshes that were duplicates of each other. 

0 Likes
Message 5 of 5

jordan.giboney
Autodesk Support
Autodesk Support

Thats great @Craig_Lamorte! Glad to hear that you were able to find a workaround 🙂

 

If you wouldn't mind, could you post/mark a solution for your this thread? Your specific script sequence would be great, but the description you posted previously would also point other users in the right direction.

 

Thanks for being a part of our community!



Jordan Giboney
Technical Solutions Engineer | Media & Entertainment
Installation & Licensing forums | Contact product support | Autodesk AREA


0 Likes