Edgemaster
11-17-2010, 09:52 PM
Hello Everyone!...Well I've been looking in the max script help files for an answer to this problem im running into. What I'm wanting to do is change a property in multiple selected objects at once. I'm a begginer to scripting but I've been trying to learn as I go. I wanna change the hair and fur modifier properties to my selected objects.
For example I can get this to work on individual objects.
$.modifiers[#Hair_and_Fur].MaterialSpecular = 30
But adding more than that to a selection gives this error
-- Unknown property: "modifiers" in $selection
The max help files give an example to use this for certain situations to filter out the properties.
for i in selection where hasProperty i "radius" do i.radius = 10
But Im having trouble finding any examples to go from for the Hair and Fur Modifier. Any help is appreciated.
Thanks,
Alex
For example I can get this to work on individual objects.
$.modifiers[#Hair_and_Fur].MaterialSpecular = 30
But adding more than that to a selection gives this error
-- Unknown property: "modifiers" in $selection
The max help files give an example to use this for certain situations to filter out the properties.
for i in selection where hasProperty i "radius" do i.radius = 10
But Im having trouble finding any examples to go from for the Hair and Fur Modifier. Any help is appreciated.
Thanks,
Alex
