dopreltoolutils module¶
-
dopreltoolutils.
checkNotPackedObject
(dopobject)¶ Raises an error if the user attempts to create a constraint with RBD Packed Objects, which only support constraint networks.
-
dopreltoolutils.
genericConstraint
(sceneviewer, nodetypename, validateobjfunc, mutual, allowaffector, nodename, prompt, exact_node_type)¶ This function is similar to the standard DOP filter tool, but is for DOP relationships, which require selecting two sets of objects. Unlike the genericRelationship function, only one selection is requested of the user.
-
dopreltoolutils.
genericConstraintTool
(scriptargs, nodetypename, validateobjfunc, mutual, allowaffector, nodename=None, prompt=None, exact_node_type=True)¶ Delegates the creation of a DOP relationship node to the standard DOP node creation tool if we are in a network editor, or the specialized genericConstraint function if we are in a scene viewer.
-
dopreltoolutils.
genericRelToolSetParms
(dopnode, affectedobjects, affectorobjects, mutual)¶ Sets the affector and affected object parameters on a relationship DOP node. These DOPs can have one of a few different names for the various parameters, so we test for the existence of various choices.
-
dopreltoolutils.
genericRelationship
(sceneviewer, nodetypename, validateobjfunc, mutual, wantaffector, needaffector, multiaffected, multiaffector, nodename, affected_prompt, affector_prompt, exact_node_type)¶ This function is similar to the standard DOP filter tool, but is for DOP relationships, which require selecting two sets of objects.
-
dopreltoolutils.
genericRelationshipTool
(scriptargs, nodetypename, validateobjfunc, mutual, wantaffector, needaffector, multiaffected, multiaffector, nodename=None, affected_prompt=None, affector_prompt=None, exact_node_type=True)¶ Delegates the creation of a DOP relationship node to the standard DOP node creation tool if we are in a network editor, or the specialized genericRelationship function if we are in a scene viewer.
-
dopreltoolutils.
validateBullet
(dopobject, affected)¶ Only Bullet affected objects, and any affector object.
-
dopreltoolutils.
validateCloth
(dopobject, affected)¶ Only cloth affected objects, and no affector objects.
-
dopreltoolutils.
validateRBD
(dopobject, affected)¶ Only RBD affected objects, and any affector object.
-
dopreltoolutils.
validateRBDorBullet
(dopobject, affected)¶ Only RBD or Bullet affected objects, and any affector object.
-
dopreltoolutils.
validateSource
(dopobject, affected)¶ Only smoke, fluid, and sand affected objects, and any affector object.
-
dopreltoolutils.
validateWire
(dopobject, affected)¶ Only wire affected objects, and no affector objects.