Community
from pyfbsdk import *
lCamlist = FBComponentList()
#FBFindModelsOfType (tuple pList, int pTypeInfo, FBModel pParent=None)
FBFindModelsOfType (lCamlist, 1, None)# actually I don't know the Type Info of the camera.
# example 1
sceneCams = []
for lComp in FBSystem().Scene.Components:
if lComp.ClassName() == 'FBCamera':
sceneCams.append(lComp)
# example 2
lCamList = FBSystem().Scene.Cameras
# example 3
lCam = FBCamera('myCam')
if lCam.Is(FBCamera_TypeInfo()) == True:
print "This is the '%s' ClassName" % lCam.ClassName()
import pyfbsdk
print 'FBFindModelsOfType' in dir(pyfbsdk) # Prints False
for camera in FBSystem().Scene.Cameras:
# Do stuff
print camera.LongName
FBCamera_TypeInfo()
Can't find what you're looking for? Ask the community or share your knowledge.