comp shape attribute


  • string comp.sel
  • float comp.index
  • float


The comp attributes give information about the last component split in the chain of the shape's predecessors.

comp.sel is a string describing the component split selector which selected the current shape (or it's predecessor, respectively) in the last component split.

comp.index is the zero-based index for the group of shapes generated by the selector. is the total number of shapes generated by the selector.



Index and total are per selector; for instance

comp(f) { front : Front | side : Side }

creates one Front shape with

  • comp.sel: front
  • comp.index: 0
  • 1

and 3 Side shapes with

  • comp.sel: side
  • comp.index: 0,1,2
  • 3

In this topic