I'm trying to create a master material for a range of fabrics. I've used this method before with Vray, but something isn't playing nicely now. My method then was to use a custom user attribute to pass on an index to an OSL 1ofN node which picks the appropriate map and passes it on to the material.
I just found this in the OSL documentation:
'OSL also allows the generic getattribute() function to get a named attribute from the scene. It is up to the renderer executing the OSL code to populate these named attributes, which means it is outside the control of the OSL Map itself to guarantee whether these attributes are defined.'
Does this mean that Corona can't get object attributes for shader level functions?
Any alternative mathods anyone would like to suggest? I am trying to use object ID as an alternative via a CoronaMultiMap, but it doesn't seem to be working currently.