Created
August 31, 2024 07:55
-
-
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
This file contains hidden or 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 __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