Pymxs version of $.material



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.

from pymxs import runtime as mxRt

material = mxRt.Selection[0].Material


Thanks @munkybutt .

Works as expected.