|
Hello.
I want to share with you an issue about the method pyfbsdk.FBFindObjectsByName .
On an empty scene, just type followings commands:
>>> import pyfbsdk >>> theList= pyfbsdk.FBComponentList()
>>> pyfbsdk.FBFindObjectsByName( "*", theList, True, True )
>>> print len(theList) 0 >>> pyfbsdk.FBFindObjectsByName( "*u*", theList, True, True )
>>> print len(theList) 7 >>> //The seven prod*U*cer cameras...
I do not except the * token to return no objects, but all objets.
|
|
|
|
As a workaround, you can do something like:
theRoot = FBSystem().Scene.RootModel for child in theRoot.Children:
print child.Name
#[...] do some stuff
But it works only for Models, (under Scene Root in Navigator window)
So you have to do the same for each Property types, cameras, Materials, Textures, etc..)
(listed in: FBScene Class Reference at SDK Python refence)
|
|
|
|
Or just get the components if you want to get everything.
theList = FBSystem().Scene.Components
But your right, using “*” as a wildcard should return everything in a search. Welcome to the world of motionbuilder API. Where not everything is as it appears to be!
|
|
|