Created
March 6, 2018 16:22
-
-
Save Danlowlows/b3cb82216d2d3a482613d2400aa72f8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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