demoBentCylinder.py
Main Page
Modules
Classes
Examples
demoBentCylinder.py
1
'''
2
Demonstrates creating a cylinder and appling a bend modifier.
3
'''
4
5
import
MaxPlus
6
7
obj =
MaxPlus.Factory.CreateGeomObject
(MaxPlus.ClassIds.Cylinder)
8
obj.ParameterBlock.Radius.Value = 10.0
9
obj.ParameterBlock.Height.Value = 30.0
10
node =
MaxPlus.Factory.CreateNode
(obj)
11
mod =
MaxPlus.Factory.CreateObjectModifier
(MaxPlus.ClassIds.Bend)
12
mod.ParameterBlock.BendAngle.Value = 45.0
13
node.AddModifier(mod)