list materials
Posted: Sat Apr 27, 2019 1:12 pm
how do I get the list of materials in a scene (python)
I can't see it in the docs or examples
I can't see it in the docs or examples
Show your work, get help, participate in development
https://forums.luxcorerender.org/
Code: Select all
materialNames = scene.ToProperties().GetAllUniqueNames("scene.materials.")
gets everything material relatedmaterialNames = self.scene.ToProperties().GetAllNames("scene.materials.")
materialNames = self.scene.ToProperties().GetAllUniqueSubNames("scene.materials")