CanvasMap
Getting Started Tutorials 3D Reference

Class CM3Item extends CMItem

CM3Item Base Class

Abstract class for 3D items

Settings Group: Position

Setting Name Type Options Default Comments
Translations Position Offset Vector CMTYPE_VECTOR null,Initial:[1,1,1] x,y, and z values to offset the item
Scales Scaling Vector CMTYPE_VECTOR null,Initial:[1,1,1] x,y, and z scaling values for the item's size

Settings Group: Shadows

Setting Name Type Options Default Comments
cast Cast Shadows CMTYPE_BOOLEAN false must be set before the OGL object is created (or recreate on set)
receive Receive Shadow CMTYPE_BOOLEAN false must be set before the OGL object is created (or recreate on set)

Name Name CMTYPE_STRING Name that appears in the item and layer lists Open Open CMTYPE_BOOLEAN false true if the object is open in the editor tree Status Status CMTYPE_INDEXES CMSTATUS_OPTIONS, Default:CMSTATUS_SELECTABLE CMSTATUS_SELECTABLE How the item appears to the user and how the user can interact with it ElevationAngle Elevation Angle CMTYPE_FLOAT 0,Range:[-90,90] BearingAngle Bearing Angle CMTYPE_FLOAT 0,Range:[-180,180] RollAngle Roll Angle CMTYPE_FLOAT 0,Range:[-90,90] Color Color CMTYPE_COLOR rgb(128,128,128) must be set before the OGL object is created (or recreate on set) opacity opacity CMTYPE_FLOAT 1 must be set before the OGL object is created (or recreate on set)

Object Functions

Inherited From: CMItem
ReturnsFunctionThrows
SetTHREEMaterial()

Object Functions

SetTHREEMaterial()

Provide a custom material for the item.