JokerMartini
08-16-2011, 07:31 PM
I'm recently posed a script here.
I'm working on condensing the code and I'm trying to make a function that does just that.
This is bugging out and I'm not sure exactly how to solve it.
http://jokermartini.com/extras/217/Welder
The setup. A spline object has a displace modifier on it and then the displace mod has a cellular map in the map slot.
Then run this function with the object selection.
fn fnDisplaceModChange prop val =
(
undo on (
for i = 1 to selection.count do
(
Obj = selection[i]
for m in Obj.modifiers where (classOf m == Displace) and (classof m.map == Cellular) do
m.prop = val
)
)
)
fnDisplaceModChange (map.size) 50
I'm working on condensing the code and I'm trying to make a function that does just that.
This is bugging out and I'm not sure exactly how to solve it.
http://jokermartini.com/extras/217/Welder
The setup. A spline object has a displace modifier on it and then the displace mod has a cellular map in the map slot.
Then run this function with the object selection.
fn fnDisplaceModChange prop val =
(
undo on (
for i = 1 to selection.count do
(
Obj = selection[i]
for m in Obj.modifiers where (classOf m == Displace) and (classof m.map == Cellular) do
m.prop = val
)
)
)
fnDisplaceModChange (map.size) 50
