Hi,
I’m trying to write a script that exports a list of objects with their corresponding materials.
I’m stuck with the multi-sub object because
- I have to determine the material ID of an object
- And from the material ID go back to the multi-sub object and retrieve the actual material.
Is there a way I can get the material ID of an object?
Interestingly, the objects only uses one material from the multi sub object. So I don’t have to query all the polygons/component. Only one is needed.
As you might know, the help(object)
doesn’t work in pymxs. Doesn’t have any help information.
I tried dir(object)
. It doesn’t list any method for the material ID. I’m also lost in the documentation.
Is there a way around this?