[Closed] P_CAN_CONVERT in maxsdk
Hi All,
Does anyone know how to use the P_CAN_COVERT parameter in the maxsdk. I’m trying to use a pick node button to select a node and filter it to be convertible to a trimesh. From the sdkhelp.
p_classID – This specifies the class ID used as a validator for the various reference target parameters. This is used by the scripter, picknode filter, etc. For example, if you supply this in a TYPE_INODE parameter and use a TYPE_PICKNODE parammap control, the picker uses this class ID in the picking filter. If you set the P_CAN_CONVERT parameter flag, it applies an Object::CanConvertTo() test to the node’s world state using the Class_ID supplied to perform the filter test.
Not sure how to actually set the P_CAN_COVERT parameter I guess. Here’s what I’ve tried.
pb_node, _T("ground"), TYPE_INODE, 0, IDS_PW_NODE,
p_ui, TYPE_PICKNODEBUTTON, IDC_PICK_OBJECT,
p_classID, P_CAN_CONVERT, EDITTRIOBJ_CLASS_ID,
end,
I haven’t been able to find any examples in the sdk.
Thanks,
Rod