|
Is there a function to clear selection in MB, can’t seem to find out.
I could do something close to it with
FBSelectObjectsByNamespace (Namespace, False)
but how do I pass it the root namespace?
Thanks!
|
|
|
|
You could try this:
# function to pick nothing
def PickNothing():
# Going through all the components in the scene to deselect them
for lComp in FBSystem().Scene.Components:
lComp.Selected = False
PickNothing()
P.S. It was named for people that remember using PowerAnimator…
|
|
|
|
Yeah I wrote a clear selection function in the meantime…
def clearSelection ():
''' Clear selection function '''
# Get selected models
modelList = FBModelList ()
FBGetSelectedModels (modelList, None, True)
# Deselect models
for model in modelList:
model.Selected = False
|
|
|