Version: 
Back to list

Scene :: findByActiveMaterial

Synopsis

   Find all part occurrence with a given material as active material (i.e. as seen in the rendering)

GUI Dialog

   

Script function

   scene.findByActiveMaterial(material[, roots]) -> occurrence

Parameters

   material (Material) : A material
   roots (OccurrenceList[optional] : If specified, restrict the search from the given roots

Return value

   occurrence (OccurrenceList) : Occurrences of parts with the given material as active material