How to instanciate a plugin material in pymxs?

How to instanciate a plugin material in pymxs?

Anonymous
Not applicable
1,185 Views
3 Replies
Message 1 of 4

How to instanciate a plugin material in pymxs?

Anonymous
Not applicable

I need to instanciate a material from a plugin in pymxs. I know the superclass id and the class id. In MaxPlus it worked like this:

MaxPlus.Factory.CreateMaterial(MaxPlus.Class_ID(superclassid, classid))

How does this work in pymxs?

 

0 Likes
Accepted solutions (1)
1,186 Views
3 Replies
Replies (3)
Message 2 of 4

Swordslayer
Advisor
Advisor
Accepted solution

In pymxs you use the constructor that's exposed to maxscript, typically it would be something along the lines of pymxs.runtime.className()

Message 3 of 4

Anonymous
Not applicable

AttributeError: 'pymxs.runtime' object has no attribute 'className'

0 Likes
Message 4 of 4

Swordslayer
Advisor
Advisor
0 Likes