Message 1 of 3
How to get Vrayxx id regardless of its language?

Not applicable
01-09-2020
02:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.