Interfaces > Core Interfaces > nodeSelectionSet |
NEW in 3ds Max 2015: The nodeSelectionSet Core Interface provides methods for querying the current node selection to determine the state of the display and render UI controls.
<boolean>nodeSelectionSet.getDisplayPropState <enum>propID <enum>condition propID enums: {#DisplayProp_Transparent | #DisplayProp_Bone | #DisplayProp_FrozenWithMaterial | #DisplayProp_Hidden | #DisplayProp_Frozen | #DisplayProp_Box | #DisplayProp_BackfaceCull | #DisplayProp_AllEdges | #DisplayProp_BoneOnly | #DisplayProp_BoneAsLine | #DisplayProp_ShowTrajectory | #DisplayProp_VertexTicks | #DisplayProp_IgnoreExtents | #DisplayProp_XRay} condition enums: {#Cond_AnyChecked | #Cond_AnyUnchecked | #Cond_Indeterminate | #Cond_Enabled}
Returns True if the Display Property specified by the propID enum argument has the state specified by the condition emum argument, otherwise returns False.
A valid scene selection is required for this method to return a meaningful result, if the selection is empty, a value of False will be returned.
#Cond_AnyChecked will return True if the specified Display property is checked in at least one of the selected objects, and False if all objects have the property unchecked.
#Cond_AnyUnchecked will return True if the specified Display property is unchecked in at least one of the selected objects, and False if all objects have the property checked.
#Cond_Indeterminate will return True if at least one object has the specified Display property in a different state than the other objects, and False if all objects have the same state, regardless of whether it is checked or unchecked.
#Cond_Enabled will return True if the checkbox is enabled and can be set using the mouse, or False if the property cannot be set interactively because the current selection does not support setting this property for all objects.
<void>nodeSelectionSet.setDisplayPropState <enum>propID <boolean>val propID enums: {#DisplayProp_Transparent | #DisplayProp_Bone | #DisplayProp_FrozenWithMaterial | #DisplayProp_Hidden | #DisplayProp_Frozen | #DisplayProp_Box | #DisplayProp_BackfaceCull | #DisplayProp_AllEdges | #DisplayProp_BoneOnly | #DisplayProp_BoneAsLine | #DisplayProp_ShowTrajectory | #DisplayProp_VertexTicks | #DisplayProp_IgnoreExtents | #DisplayProp_XRay}
Sets the state of the Display Property specified by the first argument to the Boolean state given by the second argument.
<boolean>nodeSelectionSet.getRenderPropState <enum>propID <enum>condition propID enums: {#RenderProp_Renderable | #RenderProp_CastShadows | #RenderProp_ReceiveShadows | #RenderProp_MotionBlur | #RenderProp_DisplayTexture | #RenderProp_InheritVisibility | #RenderProp_ColorVerts | #RenderProp_ShadeColorVerts | #RenderProp_VelocityMotionBlur | #RenderProp_RenderOccluded | #RenderProp_CastCaustic | #RenderProp_ReceiveCaustics | #RenderProp_ApplyAtmospherics | #RenderProp_CastGlobalIllumination | #RenderProp_ReceiveGlobalIllumination | #RenderProp_InvisibleToCamera | #RenderProp_InvisibleToReflections} condition enums: {#Cond_AnyChecked | #Cond_AnyUnchecked | #Cond_Indeterminate | #Cond_Enabled}
Returns True if the Render Property specified by the propID enum argument has the state specified by the condition emum argument, otherwise returns False.
A valid scene selection is required for this method to return a meaningful result, if the selection is empty, a value of False will be returned.
#Cond_AnyChecked will return True if the specified Render Property is checked in at least one of the selected objects, and False if all objects have the property unchecked.
#Cond_AnyUnchecked will return True if the specified Render Property is unchecked in at least one of the selected objects, and False if all objects have the property checked.
#Cond_Indeterminate will return True if at least one object has the specified Render Property in a different state than the other objects, and False if all objects have the same state, regardless of whether it is checked or unchecked.
#Cond_Enabled will return True if the checkbox is enabled and can be set using the mouse, or False if the property cannot be set interactively because the current selection does not support setting this property for all objects.
<void>nodeSelectionSet.setRenderPropState <enum>propID <boolean>val propID enums: {#RenderProp_Renderable | #RenderProp_CastShadows | #RenderProp_ReceiveShadows | #RenderProp_MotionBlur | #RenderProp_DisplayTexture | #RenderProp_InheritVisibility | #RenderProp_ColorVerts | #RenderProp_ShadeColorVerts | #RenderProp_VelocityMotionBlur | #RenderProp_RenderOccluded | #RenderProp_CastCaustic | #RenderProp_ReceiveCaustics | #RenderProp_ApplyAtmospherics | #RenderProp_CastGlobalIllumination | #RenderProp_ReceiveGlobalIllumination | #RenderProp_InvisibleToCamera | #RenderProp_InvisibleToReflections}
Sets the state of the Render Property specified by the first argument to the Boolean state given by the second argument.