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.
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