from pyfbsdk import *
from pyfbsdk_additions import *
def PopulateLayout(mainLyt):
x = FBAddRegionParam(0,FBAttachType.kFBAttachLeft,"")
y = FBAddRegionParam(0,FBAttachType.kFBAttachTop,"")
w = FBAddRegionParam(0,FBAttachType.kFBAttachRight,"")
h = FBAddRegionParam(0,FBAttachType.kFBAttachBottom,"")
cube = FBModelCube("mycube")
mainLyt.propertyBrowser = FBBrowsingProperty()
mainLyt.propertyBrowser.AddObject(cube)
mainLyt.AddRegion("main","main", x, y, w, h)
mainLyt.SetControl("main", mainLyt.propertyBrowser)
def CreateTool():
t = CreateUniqueTool("Browsing Property Example")
PopulateLayout(t)
ShowTool(t)
return t
tool = CreateTool()
print "Nb of object in Property browser", tool.propertyBrowser.ObjectGetCount()
print "What object at index 0?", tool.propertyBrowser.ObjectGet(0)