Skip to content

Instantly share code, notes, and snippets.

@justsh
Created August 31, 2024 07:55
Show Gist options
  • Select an option

  • Save justsh/0007d615a6118ebb84cd8118403a344c to your computer and use it in GitHub Desktop.

Select an option

Save justsh/0007d615a6118ebb84cd8118403a344c to your computer and use it in GitHub Desktop.
Import objs from the OBJ subfolder of the current asset's project folder
from __future__ import print_function
import pymel.core as pm
objPath = pm.workspace.path.joinpath("OBJ", "exports")
for obj in objPath.files():
pm.importFile(obj, gr=False, type="OBJ", options="mo=1;lo=0")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment