I don’t know if it’s a known issue but I’m hoping someone have either a workaround or a fix for this.
So the problem started with an animator using cube in his scene and we somehow noticed we had trouble accessing this cube through our tools. After a quick investigation we noticed that the animator created and delete several cube… and if you delete a cube manually it won’t really be deleted and mobu will keep a FBMesh in the components of the scene…
cube = FBModelCube('Cube')
def getBrokenCube():
for n in FBSystem().Scene.Components:
if n.Name == 'Cube':
print n
return n
print 'nothing found'
theCube = getBrokenCube()
This will return a FBModel , now if you manually delete it in the scene and re-run the getBrokenCube you will get a FBMesh…
This behaviour only seems to occur with Cube… and happens in both mobu 2017 and 2015 ( havent tested other versions)
I tried getting the FBMesh and then do a FBDelete() but the object remains… Any way to get rid of this mesh and fix the “corrupted scene” ?
Thanks