Hi, I'm a noob in the MAXscript world, I'm tring to write a scipt that allows me to read some coordinates form a text file whith which I want to draw "fibers" using splines and then using a sweep modifier with a cylinder section, all these thing I could do easy, but when I try to change the radius of the cylinder_section, there is nothing I can do to accomplish it. I've tried:
addmodifier $fiber1 (sweep()) -- fiber1 is a spline
$fiber1.sweep.currentbuiltinshape = 4 -- 4 refers to a cylinder section $fiber1.sweep.cylinder_section.radius = 10 --
But it returns unknown property "cylinder_section" in sweep:Sweep and also tried
mn = sweep()
addmodifier $fiber* mn
mn.currentbuiltinshape = 4
mn[4].radius =10
it doesn't work either, returns unkown property "radius" in undefined.
The weird thing is that when I input this code in the listener it works, but when I run the script it doesn't work.
thanks in advance
wassimj · 2012-03-29