FAQ: As part of the “quick start” menu, there is the example call “Multiple Instance”. When I change the model to landinggear (instead of microengine), colors of the created instance are NOT identical to the original. How do I get the same colors?

Language: JavaScript

The multiple_instance example is using the function (getNodesEffectiveFaceColor()):
https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.Model.html?highlight=getnodeseffectivefacecolor#Communicator.Communicator.Model.getNodesEffectiveFaceColor

…which does not have the granularity to retrieve the individual face colors of an instance. As an alternative, there is a function called getNodeEffectiveFaceColor():
https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.Model.html?highlight=getnodeseffectivefacecolor#Communicator.Communicator.Model.getNodeEffectiveFaceColor

 

To see a complete example with code, check out our forum post.