Skip to content

Commit

Permalink
Fixed reference functionality (now works with both Python 2 and Pytho…
Browse files Browse the repository at this point in the history
…n 3)
  • Loading branch information
tpoveda committed Sep 21, 2021
1 parent 141d686 commit 9a363d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artella/dccs/maya/dcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def reference_scene(file_path, **kwargs):
namespace = os.path.basename(file_path)
split_name = namespace.split('.')
if split_name:
namespace = string.join(split_name[:-1], '_')
namespace = '_'.join(split_name[:-1])
rsp = cmds.file(file_path, reference=True, mergeNamespacesOnClash=False, namespace=namespace)
logger.debug(
'{} = file({}, reference=True, mergeNamespacesOnClash=False, namespace={})'.format(
Expand Down

0 comments on commit 9a363d7

Please sign in to comment.