Pymxs version of $.material


#1

Hi,

I’m trying to convert a MaxScript code from this post to Python.

However, I’m not sure how to interpret “$.material” in Python.

Is there a way around this?

Thank you for looking at my problem.


#2
from pymxs import runtime as mxRt

material = mxRt.Selection[0].Material
print(material)

#3

Thanks @munkybutt .

Works as expected.