Author Topic: How do I get the shader instance attached to a specific textureset?  (Read 191 times)


I have a scene with 2 texturesets - each with their own shader instance

I want to get the index of the shader instance assigned to the active texture set


Is this possible?

thanks



We don't store shader instances by indexes, so if you want to do that you will have to index them manually on your side. To retrieve the shader instances and how they are assigned to Texture Sets take a look at alg.shaders.shaderInstancesToObject().
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Fabrice Piquet aka Froyok. Product Manager, Technical Artist and Documentation at Adobe.

sorry for the delay in responding - thanks very much :D