Cameo
10-17-2006, 02:29 PM
Hi all,
How can I go about making a mel button for my shelf which will generate a new primitive (cube lets say) which already has it's pivot set to the centre of the bottom face and which is then realigned to (0,0,0) once this is done?
I tried just echoing the script editor and copying this to my shelf but the cube just came in as normal - I assume because the pivot change involves the objects name. How do I get around this to make it a generic button I can use to make any number of cubes aligned this way?
Apolgogies if this has been asked way back when but there was nothing in the search.
Cheers
How can I go about making a mel button for my shelf which will generate a new primitive (cube lets say) which already has it's pivot set to the centre of the bottom face and which is then realigned to (0,0,0) once this is done?
I tried just echoing the script editor and copying this to my shelf but the cube just came in as normal - I assume because the pivot change involves the objects name. How do I get around this to make it a generic button I can use to make any number of cubes aligned this way?
Apolgogies if this has been asked way back when but there was nothing in the search.
Cheers
