Meta_Marker

A Marker is a 3D icon used to represent a clickable / draggable object in the scene - defaults to a sphere.

Public Types


Values for Idx_AutoSelect.

AutoSelect_Off

No tree selection when marker is clicked (Symbols - C: "AutoSelectOff", Lua: __Marker_AutoSelectOff)

AutoSelect_Marker

Select the marker itself when it is clicked (Symbols - C: "AutoSelectMarker", Lua: __Marker_AutoSelectMarker)

AutoSelect_Parent

Select the parent of the marker when it is clicked (Symbols - C: "AutoSelectParent", Lua: __Marker_AutoSelectParent)

AutoSelect_Link

Select the node specified in Idx_AutoSelectLink (Symbols - C: "AutoSelectLink", Lua: __Marker_AutoSelectLink)


enum IDX

Property index.

Idx_Enabled

bool - Enables or disables the marker and its visual

Idx_Position

vec3w - Position of the marker relative to its parent

Idx_Style

link - A style to apply to the marker (Meta_SphericalMarkerStyle, Meta_ModelMarkerStyle, Meta_ImageMarkerStyle)

Idx_Draggable

bool - Whether the marker is draggable with the mouse

Idx_AutoSelect

AutoSelectMode (int) - What happens when the marker is clicked in the scene

Idx_AutoSelectLink

link - When AutoSelectMode==Link, this node is selected

Idx_Unpickable

bool - Whether the marker is pickable (false means the cursor cannot click on it)

Idx_Rotation

vec3w - Rotation of the marker relative to its parent

Idx_SnapTo

SnapTo - What to snap to when dragging

Idx_SizingReference

link - Optionally specify a node whose bounding sphere is used as the reference for calculating screen scale (if the style indicates a screen sized marker)

Idx_AlignmentVector

vec3w - Specifies the orientation and length when the style is set to Vector alignment mode

Idx_MapOffset

float - Adjusts the texture mapping when the style uses Map Auto Scale

Idx_SupportClipPlanes

bool - Should the gui item respond to clip planes


enum SnapTo

Values for Idx_SnapTo.

SnapTo_Geometry

Dragging the marker snaps to whatever surface the cursor is touching (Symbols - C: "SnapToGeometry", Lua: __Marker_SnapToGeometry)

SnapTo_Plane

Dragging the marker snaps to the camera-aligned plane it was on before it was dragged (Symbols - C: "SnapToPlane", Lua: __Marker_SnapToPlane)

SnapTo_GeometryOrPlane

Dragging the marker snaps as per Geometry mode, but switches to Plane mode when SHIFT is held down (Symbols - C: "SnapToGeometryOrPlane", Lua: __Marker_SnapToGeometryOrPlane)

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtreevrtree_cppvtCoreCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesSettingsTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API