Built-in functions

  • void print(Expression) – print out value of constant, variable or point field
  • float rand(Expression) – pick random value based on given seed
  • float sin(Expression)
  • float cos(Expression)
  • float tan(Expression)
  • float atan(Expression)
  • float len(Expression) – compute length of vector or amount of points in vert or selection
  • vector normal(Expression) – compute normalized vector
  • vector rotate(vector v, vector axis, float angle) – rotate given vector v around axis by angle in radians
  • void addPoint(selection) – adds currently processed point to given selection
  • void removePoint(selection) – removes currently processed point from given selection
  • void clear(selection) – clear whole selection

Previous: Scopes | Language reference | Next: Communication with Maya