Skip to content

Instantly share code, notes, and snippets.

@Giakaama
Giakaama / gist:b9b8f0703e0d627d5442a42540bd52c9
Created February 14, 2022 13:43 — forked from nebadon2025/gist:8525f19c88c51a22a285ab283b0339fc
Batch FBX Importer for Blender Python
import os
import bpy
# put the location to the folder where the FBXs are located here in this fashion
# this line will only work on windows ie C:\objects
path_to_obj_dir = os.path.join('C:\\', 'objects')
# get list of all files in directory
file_list = sorted(os.listdir(path_to_obj_dir))
# get a list of files ending in 'fbx'
obj_list = [item for item in file_list if item.endswith('.fbx')]
# loop through the strings in obj_list and add the files to the scene
@Giakaama
Giakaama / select all joint in bind
Created February 14, 2022 13:43 — forked from manhha00/select all joint in bind
maya - python - select all joint in bind of selected mesh
import maya.cmds as cmds
sel = cmds.ls(sl = True)
jnts = cmds.skinCluster(sel, inf = True, q = True)
cmds.select(jnts)