Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
ccbGetSceneNodeMaterialProperty(sceneNode, materialIndex, propertyName), what is this material index thing ?

bracer
Registered User
Quote
2017-04-30 12:16:05

Ok so I have a mesh with multiple textures assigned to it in the materials panel in coppercube, how do I know what material index which material belongs to in the editor so I can change that specific material in code ?


erik
Registered User
Quote
2017-04-30 17:57:24

You can uncheck the option "Group similar materials" in the editor settings, then it is the index as shown in the editor. (0 for the first shown material, 1 for the second and so on)


bracer
Registered User
Quote
2017-04-30 19:00:09

Thanks erik, this leads one to ask why is "Group similar materials" the default in the first place if it messes up the index order in the inspector.

But it's ok, thanks ! Would be nice if there is a text at the side showing the exact index.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact