Skip to content

Instantly share code, notes, and snippets.

View Meatplowz's full-sized avatar

Randall Meatplowz

View GitHub Profile
@Meatplowz
Meatplowz / FBX_Remove_Layers.py
Last active November 29, 2019 08:09
Remove Display Layers from an FBX Scene
def remove_layers(fbx_file, layers):
"""
Remove layers from the FBX Scene
"""
layer_names = []
for layer in layers:
layer_names.append(layer.GetName())
# set these property values
try:
@Meatplowz
Meatplowz / FBX_Character_Cleanup.py
Last active January 20, 2022 15:22
This is used with the FBX_Scene Class in cleaning up an exported skeletal mesh fbx
import FBX_Scene
import FbxCommon
def clean_character_scene(fbx_filename):
"""
Clean up character fbx file
"""
# open the fbx scenes and get the scene nodes
fbx_file = FBX_Class(fbx_filename)
if not fbx_file: