|
| Re: Getting poses from scene |
 |
Wed, 27 Jun 2007 07:18:41 +000 |
Alex,
How do I then cast the lComp into an FBPose object that I can apply the FBPose
MemberFunctions to?
For instance, if I try to say GetNodeCount() on a the lComp that is of type
FBPose_TypeInfo(), like this:
for lComp in FBSystem().Scene.Components:
... if lComp != None and lComp.Is(FBPose_TypeInfo()):
... ... if lComp.Name == "myPoseInScene":
... ... ... #found our pose
... ... ... targetPose = lComp
... ... ... print "found targetPose: '%s'" % targetPose.Name
... ... ... print targetPose.GetNodeCount()
I get the error:
Attribute Error: 'FBComponent' object has no attribute 'GetNodeCount'
I'd like to be able to perform Member Functions on Poses that already exist in
the scene.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|