控制此种删除行为的是以下几个函数:
| MStatus | setExistWithoutInConnections (bool flag) |
| This method specifies whether or not the node can exist without input connections. | |
| bool | existWithoutInConnections (MStatus *ReturnStatus=NULL) const |
| Determines whether or not this node can exist without input connections. | |
| MStatus | setExistWithoutOutConnections (bool flag) |
| This method specifies whether or not the node can exist without output connections. | |
| bool | existWithoutOutConnections (MStatus *ReturnStatus=NULL) const |
| Determines whether or not this node can exist without output connections. |
按照maya的规定,set函数应该在postConstructor调用,而不是在构造函数被调用。详细见postConstructor解释。