OpenMaya.MFnSet Class Reference

Class Description

Function set for sets.

Method resolution order:
-   MFnSet
-   MFnDependencyNode
-   MFnBase
-   __builtin__.object
+ Inheritance diagram for OpenMaya.MFnSet:

Public Member Functions

__init__ ()
 
addMember ()
 
addMembers ()
 
annotation ()
 
clear ()
 
create ()
 
getIntersection ()
 
getMembers ()
 
getUnion ()
 
hasRestrictions ()
 
intersectsWith ()
 
isMember ()
 
removeMember ()
 
removeMembers ()
 
restriction ()
 
setAnnotation ()
 
- Public Member Functions inherited from OpenMaya.MFnDependencyNode
__init__ ()
 
absoluteName ()
 
addAttribute ()
 
addExternalContentForFileAttr ()
 
attribute ()
 
attributeClass ()
 
attributeCount ()
 
canBeWritten ()
 
create ()
 
dgCallbackIds ()
 
dgCallbacks ()
 
dgTimer ()
 
dgTimerOff ()
 
dgTimerOn ()
 
dgTimerQueryState ()
 
dgTimerReset ()
 
findAlias ()
 
findPlug ()
 
getAffectedAttributes ()
 
getAffectingAttributes ()
 
getAliasAttr ()
 
getAliasList ()
 
getConnections ()
 
getExternalContent ()
 
hasAttribute ()
 
hasUniqueName ()
 
isFlagSet ()
 
isNewAttribute ()
 
isTrackingEdits ()
 
name ()
 
plugsAlias ()
 
removeAttribute ()
 
reorderedAttribute ()
 
setAlias ()
 
setDoNotWrite ()
 
setExternalContent ()
 
setExternalContentForFileAttr ()
 
setFlag ()
 
setName ()
 
setUuid ()
 
userNode ()
 
uuid ()
 
- Public Member Functions inherited from OpenMaya.MFnBase
__init__ ()
 
hasObj ()
 
object ()
 
setObject ()
 
type ()
 

Static Public Attributes

int kEdgesOnly = 2
 
int kEditPointsOnly = 4
 
int kFacetsOnly = 3
 
int kNone = 0
 
int kRenderableOnly = 5
 
int kVerticesOnly = 1
 
- Static Public Attributes inherited from OpenMaya.MFnDependencyNode
int kTimerMetrics = 9
 
int kTimerTypes = 3
 
int kExtensionAttr = 3
 
int kInvalidAttr = 4
 
int kLocalDynamicAttr = 1
 
int kNormalAttr = 2
 
int kTimerInvalidState = 3
 
int kTimerOff = 0
 
int kTimerOn = 1
 
int kTimerUninitialized = 2
 
int kTimerMetric_callback = 0
 
int kTimerMetric_callbackNotViaAPI = 6
 
int kTimerMetric_callbackViaAPI = 5
 
int kTimerMetric_compute = 1
 
int kTimerMetric_computeDuringCallback = 7
 
int kTimerMetric_computeNotDuringCallback = 8
 
int kTimerMetric_dirty = 2
 
int kTimerMetric_draw = 3
 
int kTimerMetric_fetch = 4
 
int kTimerType_count = 2
 
int kTimerType_inclusive = 1
 
int kTimerType_self = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from OpenMaya.MFnDependencyNode
allocateFlag ()
 
classification ()
 
deallocateAllFlags ()
 
deallocateFlag ()
 
- Properties inherited from OpenMaya.MFnDependencyNode
 isDefaultNode
 
 isFromReferencedFile
 
 isLocked
 
 isShared
 
 namespace
 
 pluginName
 
 typeId
 
 typeName
 

Constructor & Destructor Documentation

OpenMaya.MFnSet.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMaya.MFnSet.addMember ( )
addMember( object ) -> self

Add a new object to the set.

The added object may be an MObject, an (MDagPath, MObject) tuple, or an MPlug.
OpenMaya.MFnSet.addMembers ( )
addMembers( MSelectionList ) -> self

Add a list of new objects to the set.
OpenMaya.MFnSet.annotation ( )
annotation() -> string

Returns the annotation string for this set.  This allows a description of the set to be stored with it.
OpenMaya.MFnSet.clear ( )
clear() -> self

Removes all elements from this set.
OpenMaya.MFnSet.create ( )
create(members, restriction=kNone) -> MObject

Creates a new set dependency node and puts it in the dependency graph.

* members (MSelectionList) - list of members for new set
* restriction (MFnSet.Restriction) - restriction applied to members
OpenMaya.MFnSet.getIntersection ( )
getIntersection( otherSet ) -> MSelectionList

This method calculates the intersection of two sets.  The result will be the intersection of this set and the set passed into the method.

* otherSet (MObject or MObjectArray or list of sets) - set(s) to find union of with this set
OpenMaya.MFnSet.getMembers ( )
getMembers( flatten ) -> MSelectionList

Get the members of this set as a selection list.  This information is providedas a selection list so that all of the path information is retained forDAG nodes.

It is possible to ask for the returned list to be flattened.  This means thatall sets that exist inside this set will be expanded into a list of theircontents.

* flatten (bool) - whether to flatten the returned list
OpenMaya.MFnSet.getUnion ( )
getUnion( otherSet ) -> MSelectionList

This method calculates the union of two sets.  The result will be the union of this set and the set passed into the method.

* otherSet (MObject or MObjectArray or list of sets) - set(s) to find union of with this set
OpenMaya.MFnSet.hasRestrictions ( )
hasRestrictions() -> bool

Returns true if this function set has restrictions on the type of objects that it may contain.
OpenMaya.MFnSet.intersectsWith ( )
intersectsWith( otherSet ) -> self

Returns true if this set intersects with the given set.  An intersection occurs if there are any common members between the two sets.
OpenMaya.MFnSet.isMember ( )
isMember( object ) -> bool

Returns true if the given object is a member of this set.

The object may be an MObject, an (MDagPath, MObject) tuple, or an MPlug.
OpenMaya.MFnSet.removeMember ( )
removeMember( object ) -> self

Remove an object from the set.

The removed object may be an MObject, an (MDagPath, MObject) tuple, or an MPlug.
OpenMaya.MFnSet.removeMembers ( )
removeMembers( MSelectionList ) -> self

Remove items of the selection list from the set.
OpenMaya.MFnSet.restriction ( )
restriction() -> MFnSet.Restriction

Returns the type of membership restriction that this set has.
OpenMaya.MFnSet.setAnnotation ( )
setAnnotation( annotation ) -> self

Sets the annotation string for this set.  This allows a description of the set to be stored with it.