Version: 
Back to list

View :: createOccurrenceOnCameraTarget

Synopsis

   Create an occurrence on the target position of the camera (mid-click)

GUI Dialog

   

Script function

   view.createOccurrenceOnCameraTarget(name[, parent]) -> occurrence

Parameters

   name (String) : Name of the new occurrence
   parent (Occurrence[optional] : If defined, the new occurrence will be added as a child of the parent. Else the new parent will be the root of the current variant

Return value

   occurrence (Occurrence) : The created occurrence