3ds Max C++ API Reference
PartID

This section describes the PartID parameter used to pass information that supports messages received by Reference Makers. More...

Typedefs

typedef ULONG_PTR PartID
 This is NOT just a bitmask, the parameter is also used to stuff pointers, hence the ULONG_PTR. More...
 

Object Channel PartIDs

OBJECT STATE: SUB-PARTS These are the 4 sub-channels in the object state.

Don't change these defines.

See also
channels.h for define of TOPO_CHANNEL, etc.
const PartID PART_TOPO = (PartID)TOPO_CHANNEL
 See TOPO_CHANNEL. More...
 
const PartID PART_GEOM = (PartID)GEOM_CHANNEL
 See GEOM_CHANNEL
More...
 
const PartID PART_TEXMAP = (PartID)TEXMAP_CHANNEL
 See TEXMAP_CHANNEL. More...
 
const PartID PART_MTL = (PartID)MTL_CHANNEL
 See MTL_CHANNEL. More...
 
const PartID PART_SELECT = (PartID)SELECT_CHANNEL
 See SELECT_CHANNEL. More...
 
const PartID PART_SUBSEL_TYPE = (PartID)SUBSEL_TYPE_CHANNEL
 See SUBSEL_TYPE_CHANNEL. More...
 
const PartID PART_DISPLAY = (PartID)DISP_ATTRIB_CHANNEL
 See DISP_ATTRIB_CHANNEL. More...
 
const PartID PART_VERTCOLOR = (PartID)VERTCOLOR_CHANNEL
 See VERTCOLOR_CHANNEL. More...
 
const PartID PART_GFX_DATA = (PartID)GFX_DATA_CHANNEL
 See GFX_DATA_CHANNEL. More...
 
const PartID PART_DISP_APPROX = (PartID)DISP_APPROX_CHANNEL
 See DISP_APPROX_CHANNEL. More...
 
const PartID PART_EXTENSION = (PartID)EXTENSION_CHANNEL
 See EXTENSION_CHANNEL. More...
 
const PartID PART_TM_CHAN = (PartID)TM_CHANNEL
 Transform Channel. More...
 
const PartID PART_MTL_CHAN = (PartID)GLOBMTL_CHANNEL
 Material Channel. More...
 
const PartID PART_OBJECT_TYPE = (PartID)(1<<11)
 The type of object in the pipeline changed. More...
 
const PartID PART_TM = (PartID)(1<<12)
 node transform matrix More...
 
const PartID PART_OBJ = (PartID)(PART_TOPO|PART_GEOM)
 Combination of PART_TOPO and PART_GEOM. More...
 
const PartID PART_ALL = (PartID)(ALL_CHANNELS|PART_TM)
 Combination of ALL_CHANNELS and PART_TM. More...
 

Node Global Illumination Property PartIDs

Part IDs sent with the REFMSG_NODE_GI_PROP_CHANGED message.


const PartID PART_GI_EXCLUDED = (PartID)(1<<0)
 Excluded. More...
 
const PartID PART_GI_OCCLUDER = (PartID)(1<<1)
 Excluder. More...
 
const PartID PART_GI_RECEIVER = (PartID)(1<<2)
 Receiver. More...
 
const PartID PART_GI_DIFFUSE = (PartID)(1<<3)
 Diffuse. More...
 
const PartID PART_GI_SPECULAR = (PartID)(1<<4)
 Specular. More...
 
const PartID PART_GI_NBREFINESTEPS = (PartID)(1<<5)
 Refine Steps. More...
 
const PartID PART_GI_MESHSIZE = (PartID)(1<<6)
 Mesh Size. More...
 
const PartID PART_GI_MESHINGENABLED = (PartID)(1<<7)
 Meshing Enabled. More...
 
const PartID PART_GI_USEGLOBALMESHING = (PartID)(1<<8)
 Use Global Meshing. More...
 
const PartID PART_GI_EXCLUDEFROMREGATHERING = (PartID)(1<<9)
 Exclude From Regathering. More...
 
const PartID PART_GI_STOREILLUMMESH = (PartID)(1<<10)
 Store Illumination Mesh. More...
 
const PartID PART_GI_RAYMULT = (PartID)(1<<11)
 Ray Multiplier. More...
 
const PartID PART_GI_USE_ADAPTIVE_SUBDIVISION = (PartID)(1<<12)
 Use Adaptive Subdivision. More...
 
const PartID PART_GI_MIN_MESH_SIZE = (PartID)(1<<13)
 Minium Mesh size. More...
 
const PartID PART_GI_INITIAL_MESH_SIZE = (PartID)(1<<14)
 Initial Mesh size. More...
 
const PartID PART_GI_CONTRAST_THRESHOLD = (PartID)(1<<15)
 Contrast Threshold. More...
 

Node Render Property PartIDs

Sent with REFMSG_NODE_RENDERING_PROP_CHANGED

const PartID PART_REND_PROP_RENDERABLE = (PartID)(1<<0)
 Renderable. More...
 
const PartID PART_REND_PROP_CAST_SHADOW = (PartID)(1<<1)
 Cast Shadow. More...
 
const PartID PART_REND_PROP_RCV_SHADOW = (PartID)(1<<2)
 Recieve Shadow. More...
 
const PartID PART_REND_PROP_RENDER_OCCLUDED = (PartID)(1<<3)
 Render Occluded. More...
 
const PartID PART_REND_PROP_VISIBILITY = (PartID)(1<<4)
 Visibility. More...
 
const PartID PART_REND_PROP_INHERIT_VIS = (PartID)(1<<5)
 Inherit Visibility. More...
 
const PartID PART_REND_PROP_PRIMARY_INVISIBILITY = (PartID)(1<<6)
 Primary Visibility. More...
 
const PartID PART_REND_PROP_SECONDARY_INVISIBILITY = (PartID)(1<<7)
 Secondary Visibility. More...
 

PartIDs for Changing Display Properties

PartIDs sent with the REFMSG_NODE_DISPLAY_PROP_CHANGED message.

const PartID PART_DISP_PROP_IS_HIDDEN = (PartID)(1<<0)
 Is hidden. More...
 
const PartID PART_DISP_PROP_IS_FROZEN = (PartID)(1<<1)
 Is frozen. More...
 
const PartID PART_DISP_PROP_SHOW_FRZN_WITH_MTL = (PartID)(1<<2)
 Show frozen with material. More...
 
const PartID PART_DISP_PROP_BOX_MODE = (PartID)(1<<3)
 Box mode. More...
 
const PartID PART_DISP_PROP_BACKCULL = (PartID)(1<<4)
 Backface culling. More...
 
const PartID PART_DISP_PROP_ALL_EDGES = (PartID)(1<<5)
 All edges. More...
 
const PartID PART_DISP_PROP_BONE_ONLY = (PartID)(1<<6)
 Bones only. More...
 
const PartID PART_DISP_PROP_BONE_AS_LINE = (PartID)(1<<7)
 Bones as lines. More...
 
const PartID PART_DISP_PROP_SHOW_PATH = (PartID)(1<<8)
 Show path. More...
 
const PartID PART_DISP_PROP_VERT_TICKS = (PartID)(1<<9)
 Vertex ticks. More...
 
const PartID PART_DISP_PROP_XRAY_MTL = (PartID)(1<<10)
 XRay material. More...
 
const PartID PART_DISP_PROP_IGNORE_EXTENTS = (PartID)(1<<11)
 Ignore extents. More...
 
const PartID PART_DISP_PROP_COLOR_VERTS = (PartID)(1<<12)
 Vertex colors. More...
 

Miscellaneous PartIDs

const PartID PART_EXCLUDE_RADIOSITY = (PartID)(1<<29)
 Special part ID that prevents the radiosity engine from processing the change. More...
 
const PartID PART_HIDESTATE = (PartID)(1<<30)
 Special part ID sent by visibility controllers. More...
 
const PartID PART_MXS_PROPCHANGE = (PartID)(1<<16)
 Special part ID sent by MAXScript when it changes an object's parameter. More...
 

PartIDs when notify dependents is called with REFMSG_FLAGDEPENDENTS

See also
REFMSG_FLAGDEPENDENTS
const PartID PART_PUT_IN_FG = (PartID)(1<<0)
 Put in Foreground. More...
 
const PartID PART_SHOW_DEPENDENCIES = (PartID)(1<<1)
 Show dependencies. More...
 
const PartID PART_SHOWDEP_ON = (PartID)(1<<2)
 Show dependencies on. More...
 

Detailed Description

This section describes the PartID parameter used to pass information that supports messages received by Reference Makers.

Typedef Documentation

◆ PartID

typedef ULONG_PTR PartID

This is NOT just a bitmask, the parameter is also used to stuff pointers, hence the ULONG_PTR.

Variable Documentation

◆ PART_TOPO

const PartID PART_TOPO = (PartID)TOPO_CHANNEL

◆ PART_GEOM

const PartID PART_GEOM = (PartID)GEOM_CHANNEL

◆ PART_TEXMAP

const PartID PART_TEXMAP = (PartID)TEXMAP_CHANNEL

◆ PART_MTL

const PartID PART_MTL = (PartID)MTL_CHANNEL

◆ PART_SELECT

const PartID PART_SELECT = (PartID)SELECT_CHANNEL

◆ PART_SUBSEL_TYPE

const PartID PART_SUBSEL_TYPE = (PartID)SUBSEL_TYPE_CHANNEL

◆ PART_DISPLAY

◆ PART_VERTCOLOR

const PartID PART_VERTCOLOR = (PartID)VERTCOLOR_CHANNEL

◆ PART_GFX_DATA

const PartID PART_GFX_DATA = (PartID)GFX_DATA_CHANNEL

◆ PART_DISP_APPROX

const PartID PART_DISP_APPROX = (PartID)DISP_APPROX_CHANNEL

◆ PART_EXTENSION

const PartID PART_EXTENSION = (PartID)EXTENSION_CHANNEL

◆ PART_TM_CHAN

const PartID PART_TM_CHAN = (PartID)TM_CHANNEL

Transform Channel.

◆ PART_MTL_CHAN

const PartID PART_MTL_CHAN = (PartID)GLOBMTL_CHANNEL

Material Channel.

◆ PART_OBJECT_TYPE

const PartID PART_OBJECT_TYPE = (PartID)(1<<11)

The type of object in the pipeline changed.

◆ PART_TM

const PartID PART_TM = (PartID)(1<<12)

node transform matrix

◆ PART_OBJ

const PartID PART_OBJ = (PartID)(PART_TOPO|PART_GEOM)

Combination of PART_TOPO and PART_GEOM.

◆ PART_ALL

const PartID PART_ALL = (PartID)(ALL_CHANNELS|PART_TM)

Combination of ALL_CHANNELS and PART_TM.

◆ PART_GI_EXCLUDED

const PartID PART_GI_EXCLUDED = (PartID)(1<<0)

Excluded.

◆ PART_GI_OCCLUDER

const PartID PART_GI_OCCLUDER = (PartID)(1<<1)

Excluder.

◆ PART_GI_RECEIVER

const PartID PART_GI_RECEIVER = (PartID)(1<<2)

Receiver.

◆ PART_GI_DIFFUSE

const PartID PART_GI_DIFFUSE = (PartID)(1<<3)

Diffuse.

◆ PART_GI_SPECULAR

const PartID PART_GI_SPECULAR = (PartID)(1<<4)

Specular.

◆ PART_GI_NBREFINESTEPS

const PartID PART_GI_NBREFINESTEPS = (PartID)(1<<5)

Refine Steps.

◆ PART_GI_MESHSIZE

const PartID PART_GI_MESHSIZE = (PartID)(1<<6)

Mesh Size.

◆ PART_GI_MESHINGENABLED

const PartID PART_GI_MESHINGENABLED = (PartID)(1<<7)

Meshing Enabled.

◆ PART_GI_USEGLOBALMESHING

const PartID PART_GI_USEGLOBALMESHING = (PartID)(1<<8)

Use Global Meshing.

◆ PART_GI_EXCLUDEFROMREGATHERING

const PartID PART_GI_EXCLUDEFROMREGATHERING = (PartID)(1<<9)

Exclude From Regathering.

◆ PART_GI_STOREILLUMMESH

const PartID PART_GI_STOREILLUMMESH = (PartID)(1<<10)

Store Illumination Mesh.

◆ PART_GI_RAYMULT

const PartID PART_GI_RAYMULT = (PartID)(1<<11)

Ray Multiplier.

◆ PART_GI_USE_ADAPTIVE_SUBDIVISION

const PartID PART_GI_USE_ADAPTIVE_SUBDIVISION = (PartID)(1<<12)

Use Adaptive Subdivision.

◆ PART_GI_MIN_MESH_SIZE

const PartID PART_GI_MIN_MESH_SIZE = (PartID)(1<<13)

Minium Mesh size.

◆ PART_GI_INITIAL_MESH_SIZE

const PartID PART_GI_INITIAL_MESH_SIZE = (PartID)(1<<14)

Initial Mesh size.

◆ PART_GI_CONTRAST_THRESHOLD

const PartID PART_GI_CONTRAST_THRESHOLD = (PartID)(1<<15)

Contrast Threshold.

◆ PART_REND_PROP_RENDERABLE

const PartID PART_REND_PROP_RENDERABLE = (PartID)(1<<0)

Renderable.

◆ PART_REND_PROP_CAST_SHADOW

const PartID PART_REND_PROP_CAST_SHADOW = (PartID)(1<<1)

Cast Shadow.

◆ PART_REND_PROP_RCV_SHADOW

const PartID PART_REND_PROP_RCV_SHADOW = (PartID)(1<<2)

Recieve Shadow.

◆ PART_REND_PROP_RENDER_OCCLUDED

const PartID PART_REND_PROP_RENDER_OCCLUDED = (PartID)(1<<3)

Render Occluded.

◆ PART_REND_PROP_VISIBILITY

const PartID PART_REND_PROP_VISIBILITY = (PartID)(1<<4)

Visibility.

◆ PART_REND_PROP_INHERIT_VIS

const PartID PART_REND_PROP_INHERIT_VIS = (PartID)(1<<5)

Inherit Visibility.

◆ PART_REND_PROP_PRIMARY_INVISIBILITY

const PartID PART_REND_PROP_PRIMARY_INVISIBILITY = (PartID)(1<<6)

Primary Visibility.

◆ PART_REND_PROP_SECONDARY_INVISIBILITY

const PartID PART_REND_PROP_SECONDARY_INVISIBILITY = (PartID)(1<<7)

Secondary Visibility.

◆ PART_DISP_PROP_IS_HIDDEN

const PartID PART_DISP_PROP_IS_HIDDEN = (PartID)(1<<0)

Is hidden.

◆ PART_DISP_PROP_IS_FROZEN

const PartID PART_DISP_PROP_IS_FROZEN = (PartID)(1<<1)

Is frozen.

◆ PART_DISP_PROP_SHOW_FRZN_WITH_MTL

const PartID PART_DISP_PROP_SHOW_FRZN_WITH_MTL = (PartID)(1<<2)

Show frozen with material.

◆ PART_DISP_PROP_BOX_MODE

const PartID PART_DISP_PROP_BOX_MODE = (PartID)(1<<3)

Box mode.

◆ PART_DISP_PROP_BACKCULL

const PartID PART_DISP_PROP_BACKCULL = (PartID)(1<<4)

Backface culling.

◆ PART_DISP_PROP_ALL_EDGES

const PartID PART_DISP_PROP_ALL_EDGES = (PartID)(1<<5)

All edges.

◆ PART_DISP_PROP_BONE_ONLY

const PartID PART_DISP_PROP_BONE_ONLY = (PartID)(1<<6)

Bones only.

◆ PART_DISP_PROP_BONE_AS_LINE

const PartID PART_DISP_PROP_BONE_AS_LINE = (PartID)(1<<7)

Bones as lines.

◆ PART_DISP_PROP_SHOW_PATH

const PartID PART_DISP_PROP_SHOW_PATH = (PartID)(1<<8)

Show path.

◆ PART_DISP_PROP_VERT_TICKS

const PartID PART_DISP_PROP_VERT_TICKS = (PartID)(1<<9)

Vertex ticks.

◆ PART_DISP_PROP_XRAY_MTL

const PartID PART_DISP_PROP_XRAY_MTL = (PartID)(1<<10)

XRay material.

◆ PART_DISP_PROP_IGNORE_EXTENTS

const PartID PART_DISP_PROP_IGNORE_EXTENTS = (PartID)(1<<11)

Ignore extents.

◆ PART_DISP_PROP_COLOR_VERTS

const PartID PART_DISP_PROP_COLOR_VERTS = (PartID)(1<<12)

Vertex colors.

◆ PART_EXCLUDE_RADIOSITY

const PartID PART_EXCLUDE_RADIOSITY = (PartID)(1<<29)

Special part ID that prevents the radiosity engine from processing the change.

◆ PART_HIDESTATE

const PartID PART_HIDESTATE = (PartID)(1<<30)

Special part ID sent by visibility controllers.

Sent when they change the hidden in viewport state. Sent with REFMSG_CHANGE message.

◆ PART_MXS_PROPCHANGE

const PartID PART_MXS_PROPCHANGE = (PartID)(1<<16)

Special part ID sent by MAXScript when it changes an object's parameter.

Sent with REFMSG_CHANGE message

◆ PART_PUT_IN_FG

const PartID PART_PUT_IN_FG = (PartID)(1<<0)

Put in Foreground.

◆ PART_SHOW_DEPENDENCIES

const PartID PART_SHOW_DEPENDENCIES = (PartID)(1<<1)

Show dependencies.

◆ PART_SHOWDEP_ON

const PartID PART_SHOWDEP_ON = (PartID)(1<<2)

Show dependencies on.