multiple modifiers on multiple objects
Hi Guys,
I'm Looking to figure out a way to add a set of modifiers (in this case a UVW Box Map with 1mx1mx1m followed by a material modifier to several selected objects).
It would be super cool to have it applied to a quad menu, but I suppose that should work if you make it a macroscript and then costumize the quads to include the written macroscript.
Tried something like this:
macroScript Macro1
category:"DragAndDrop"
toolTip:""
(
modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Map].maptype = 4
$.modifiers[#UVW_Map].length = 100
$.modifiers[#UVW_Map].width = 100
$.modifiers[#UVW_Map].height = 100
modPanel.addModToSelection (Materialmodifier ()) ui:on
)
But it only works for individual objects, unfortunately
Thanks for your help, this is my 1st attempt at scripting.
Comments
Dear Barigazy, thank you for
Dear Barigazy, thank you for your input and apologies for my fossilizingly late reply.
I did manage to get it done in the end by applying simply a modifier to a selection, and then applying another one. :)
they were all nicely instanced and controllable by selecting a simple object and applying changes to all in each of the instanced modifiers.
None the less, many thanks! :)
Thanks,
ZM
or you just can add this line
or you just can add this line ..
...
This is what you want. If you press SHIFT then all modifier are copy or with single click you have all modifiers as instance
bga
...
Don't try to copy from Listener or drag-drop chank of code to your toolbar. It's always better to find right solution in MXS Help documentation.
bga