Skip to content

Instantly share code, notes, and snippets.

@Danlowlows
Created March 6, 2018 16:22
Show Gist options
  • Save Danlowlows/b3cb82216d2d3a482613d2400aa72f8b to your computer and use it in GitHub Desktop.
Save Danlowlows/b3cb82216d2d3a482613d2400aa72f8b to your computer and use it in GitHub Desktop.
from pyfbsdk import FBSystem, FBNamespaceAction, FBPlugModificationFlag
def DeleteNameSpace(namespace):
FBSystem().Scene.NamespaceDeleteContent(namespace, FBPlugModificationFlag.kFBPlugAllContent, True)
def AddNamespace(components, namespace):
for comp in components:
comp.ProcessObjectNamespace(FBNamespaceAction.kFBConcatNamespace, namespace)
def SafeDeleteList(components):
AddNamespace(components, "TEMP_NAMESPACE_FOR_DELETE")
DeleteNameSpace("TEMP_NAMESPACE_FOR_DELETE")
components = FBSystem().Scene.Components #Replace this with whatever list you want to delete
SafeDeleteList(components)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment