pymel.core.system.dgfilter

dgfilter(*args, **kwargs)

The dgfiltercommand is used to define Dependency Graph filters that select DG objects based on certain criteria. The command itself can be used to filter objects or it can be attached to a dbtraceobject to selectively filter what output is traced. If objects are specified then apply the filter to those objects and return a boolean indicating whether they passed or not, otherwise return then name of the filter. An invalid filter will pass all objects. For multiple objects the return value is the logical ANDof all object’s return values.

Dynamic library stub function

Flags:

Long Name / Short Name Argument Types Properties
attribute / atr unicode ../../../_images/create.gif
  Select objects whose attribute names match the pattern.
list / l bool ../../../_images/create.gif
  List the available filters. If used in conjunction with the -nameflag it will show a description of what the filter is.
logicalAnd / logicalAnd unicode, unicode ../../../_images/create.gif
  Logical AND of two filters.
logicalNot / logicalNot unicode ../../../_images/create.gif
  Logical inverse of filter.
logicalOr / logicalOr unicode, unicode ../../../_images/create.gif
  Logical OR of two filters.
name / n unicode ../../../_images/create.gif
  Use filter named FILTER (or create new filter with that name). If no objects are specified then the name given to the filter will be returned.
node / nd unicode ../../../_images/create.gif
  Select objects whose node names match the pattern.
nodeType / nt unicode ../../../_images/create.gif
  Select objects whose node type names match the pattern.
plug / p unicode ../../../_images/create.gif
  Select objects whose plug names match the pattern. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.dgfilter