FBNamespace Class Reference


Detailed Description

Objects Containing class.

This class is an interface to manipulate object's containing in the scene.

Examples
BasicOperations/NamespaceOperationsOnTrack.py
Inheritance diagram for FBNamespace:

List of all members.

Public Member Functions

 __init__ (str pSingleLevelNamespace, FBNamespace pParentNSObj)
 Constructor.
int GetContentCount ()
 Get the namespace content objects count (Not Recursive).
FBComponent GetContent (int pIndex)
 Get the namespace content object count (Not Recursive).
 GetContentList (tuple pContentList, FBPlugModificationFlag pModificationFlags=kFBPlugAllContent, bool pRecursive=True, int pTypeInfo=FBPlug::TypeInfo, bool pExactTypeMatch=False)
 Get List of the namespace content.

Public Attributes

FBPropertyListNamespace ChildrenNamespaces
 List: Direct Children Namespace Objects.

Protected Member Functions

 __init__ (str pMultiLevelNamespace, object pObject)
 Constructor.

Member Function Documentation

__init__ ( str  pMultiLevelNamespace,
object  pObject 
) [protected]

Constructor.

For Internal use only.

Parameters:
pMultiLevelNamespaceFBNamespace name. This name will be used as namespace itself. it should follow such pattern "NS1[:NS2[:NS3]]]", where content inside [] is optional.
pObjectFor internal use only.
Examples
BasicOperations/NamespaceOperationsOnTrack.py
__init__ ( str  pSingleLevelNamespace,
FBNamespace  pParentNSObj 
)

Constructor.

Create a new direct children namespace object

Parameters:
pSingleLevelNamespaceFBNamespace name. This name will be used as namespace itself. this name string shouldn't contain namespace string separator ":".
pParentNSObjthe parent namespace object. if NULl means to create top level namespace.
Examples
BasicOperations/NamespaceOperationsOnTrack.py
int GetContentCount ( )

Get the namespace content objects count (Not Recursive).

return content objects count inside this namespace (not recursive)

FBComponent GetContent ( int  pIndex)

Get the namespace content object count (Not Recursive).

Parameters:
pIndexcontent object index to query. return content object inside this namespace (not recursive)
GetContentList ( tuple  pContentList,
FBPlugModificationFlag  pModificationFlags = kFBPlugAllContent,
bool  pRecursive = True,
int  pTypeInfo = FBPlug::TypeInfo,
bool  pExactTypeMatch = False 
)

Get List of the namespace content.

Parameters:
pContentListthe list of content to return.
pModificationFlagsbitwise combination of kFBConnectionSrcObjectModified, kFBConnectionDstObjectModified, kFBConnectionSrcPropertyModified, kFBConnectionDstPropertyModified flags. kFBAllContent means all the content.
pRecursiveTrue only work on the direct children level namespace, otherwise will work on the whole children namespace hierarchy recursively.
pTypeInfothe typeInfo of the type of interested object, 0 for all the objects.
pExactTypeMatchif True, the derived typeInfo won't be considered (For example, FBCamera won't be considered when passing FBModel.TypeInfo).

Member Data Documentation

List: Direct Children Namespace Objects.


FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace
FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace FBNamespace