Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Where are the class IDs?

Where are the class IDs?

Anonymous
Not applicable
911 Views
2 Replies
Message 1 of 3

Where are the class IDs?

Anonymous
Not applicable

I'm following the "MaxPlus Python API Introduction" and I can't find access to critical pieces of documentation. Specifically, there does not seem to be any documentation of the classIds of objects (at least, there is no link to it to be found). In the "Working with Objects" section of the aforementioned python api introduction, the following example code is given:

 

obj = MaxPlus.Factory.CreateGeomObject(MaxPlus.ClassIds.Cylinder)
obj.ParameterBlock.Radius.Value = 10.0
obj.ParameterBlock.Height.Value = 30.0
node = MaxPlus.Factory.CreateNode(obj)
mod = MaxPlus.Factory.CreateObjectModifier(MaxPlus.ClassIds.Bend)
mod.ParameterBlock.BendAngle.Value = 45.0
node.AddModifier(mod)

I imagined on that same page, there would be a list of all objects available to use with CreateGeomObject(MaxPlus.ClassIds.), and maybe a cross section of what objects are created using the CreateGeomObject command versus the CreateObject command. However, I cannot find any such list or a link to a list. I can imply that to create a cube, it would be:

MaxPlus.Factory.CreateGeomObject(MaxPlus.ClassIds.Cube)

 But what about more complex objects such as a CV Curve? I could use trial and error by trying some of the following:

MaxPlus.Factory.CreateGeomObject(MaxPlus.ClassIds.CVCurve)
MaxPlus.Factory.CreateGeomObject(MaxPlus.ClassIds.CVcurve)
MaxPlus.Factory.CreateGeomObject(MaxPlus.ClassIds.CV_Curve)
MaxPlus.Factory.CreateGeomObject(MaxPlus.ClassIds.CvCurve) 

This is an asinine process for something I imagined would be a piece of easily accessible documentation. I'm used to Maya's Python API documentation which is SUPERB, and frankly my experience so far with the 3ds Max documentation has not been nearly as enjoyable. Hopefully I'm just missing something obvious, something I'm prone to when I begin using something new, but I really expected a big link such as "List of object class Ids can be found here" and so far even Google searching has not yielded such a list. If anyone could point me in the right direction here, it would be very appreciated. 

0 Likes
912 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Clarification: 

Yes, I can run this command:

 

help(MaxPlus.ClassIds)

 

I am wondering if there is an online section in the documentation that gives me the information equivalent to what is returned from that command, because scrolling through that in the MaxScript window is intuitive, more difficult to read, and it cuts off information about each object type.  I also recommend that if such documentation exists, it be added as a link to the "Working With Objects" learning module of the documentation to save other new users from this problem. 

0 Likes
Message 3 of 3

drew_avis
Autodesk
Autodesk

Hi there, we don't currently have a list of ClassID values in the MaxPlus reference, but that's a good idea.  I've made a note to look into how we could add this to the help.

 

Drew



Drew Avis
Content Experience Designer