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.

How to get Vrayxx id regardless of its language?

How to get Vrayxx id regardless of its language?

Anonymous
Not applicable
607 Views
2 Replies
Message 1 of 3

How to get Vrayxx id regardless of its language?

Anonymous
Not applicable

I'm writing a plug-in based on VRay in 3ds Max, and it can now work if vary is installed in English. But when vray language changes, my plugin will fail because i campare everything to english like(it's python2):

if material.getName == 'VRayClolr':
    pass

it won't work when VRay language is different. How can i solve this problem? Can i get something unchangeable, such as ID ? i dont know

if material.getID == 100:
    pass

Thank you very much.

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

miauuuu
Collaborator
Collaborator

You can try with matchPattern

if matchPattern material.getName pattern:"*vray*" then
(pass)
else
(not pass)
https://miauu-maxscript.com/
0 Likes
Message 3 of 3

Anonymous
Not applicable

It's really a good idea.🤔

0 Likes