initialShape

Syntax

  • string initialShape.name
  • string initialShape.startRule
  • float initialShape.origin.p{x|y|z}
  • float initialShape.origin.o{x|y|z}

Description

The initialShape attribute contains the name and the startRule of the initial shape, as set in the inspector. It also contains the origin of the object space (defined by a position vector p and a set of euler angles o, relative to the world coordinate system). A shape’s pivot is relative to the initialShape.origin. This attribute can only be read.

Example

Wall --> print("initialShape.name: " + initialShape.name) 
         print("initialShape.startRule: " + initialShape.startRule)

Was this article helpful?