Version: 
Back to list

Scene :: setParent

Synopsis

   Set the parent of an occurrence

GUI Dialog

   

Script function

   scene.setParent(occurrence, parent[, addInParentInstances[, insertBefore]])

Parameters

   occurrence (Occurrence) : The occurrence
   parent (Occurrence) : The parent occurrence
   addInParentInstances (Boolean[optional] : If True, each occurrence whose prototype is the target parent will generate a child whose prototype is the occurrence itself
   insertBefore (Occurrence[optional] : Add before this child occurrence in the children list of the parent occurrence