why is my python function not working?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i want to create object using python in 3ds max . just to create a simple default size box i need to write this long code each time i create an object.
obj = MaxPlus.Factory.CreateGeomObject(MaxPlus.ClassIds.Box)
node = MaxPlus.Factory.CreateNode(obj)
ughhh....
so i tried to make a function :
import MaxPlus
def create(geo):
obj = MaxPlus.Factory.CreateGeomObject(MaxPlus.ClassIds.geo)
node = MaxPlus.Factory.CreateNode(obj)
create("Box")
--result
Traceback (most recent call last):
File "<input>", line 2, in <create>
AttributeError: type object 'ClassIds' has no attribute 'geo'
unfortunately this didn't work.
i dont know why .
Is there any way to create object so i dont need to write these long lines of code each time? Thank in advance.