Adding object ID to element name
selection[i].gbufferchannel = i
element = MatteRenderElement()
element.elementName = (selection[i].name)
element.gbufID = i
I am looking to convert a piece of code to give the element name as the object ID + the object name. The rest works fine. I have tried this below as well as other variations with no luck. I have looked through the maxscript help files but not being very experienced scripter cant figure it out.
element.elementName = (selection[i].gbufID + _ + selection[i].name)
I would like it to read something like "51_box001"
Any help would be much appreciated.