Holzi
03-13-2012, 04:07 PM
Hi Guys,
I need a little help with a rather simple macro:
I have >500 elements and need to add an individual uvw map modifier for each of them. after adding, I need to change it to Box mapping. Normally that should give me a fitted UVW-box for each of the boxes. I tried using the macro recorder, however I get an error.
here the script:
macroScript Macro10
category:"DragAndDrop"
toolTip:""
(
modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Mapping].maptype = 4
)
and the error message:
>> MAXScript MacroScript Error Exception: -- Unknown property: "modifiers" in $selection <<
I need a little help with a rather simple macro:
I have >500 elements and need to add an individual uvw map modifier for each of them. after adding, I need to change it to Box mapping. Normally that should give me a fitted UVW-box for each of the boxes. I tried using the macro recorder, however I get an error.
here the script:
macroScript Macro10
category:"DragAndDrop"
toolTip:""
(
modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Mapping].maptype = 4
)
and the error message:
>> MAXScript MacroScript Error Exception: -- Unknown property: "modifiers" in $selection <<
