Version: 
Back to list

Scene :: getComponentByOccurrence

Synopsis

   Returns one component of the specified type by occurrence if it exists

GUI Dialog

   

Script function

   scene.getComponentByOccurrence(occurrences, componentType[, followPrototypes]) -> components

Parameters

   occurrences (OccurrenceList) : The occurrences list
   componentType (ComponentType) : Type of the component
   followPrototypes (Bool[optional] : If true and if the component is not set on the occurrence, try to find it on its prototyping chain

Return value

   components (ComponentList) : List of component synchronized with occurrences