mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
make sure there is a check in relative names in namespace before yield function & add docstring
This commit is contained in:
parent
08f47c77fd
commit
846bd0fd59
2 changed files with 3 additions and 2 deletions
|
|
@ -938,7 +938,8 @@ def namespaced(namespace, new=True, relative_names=None):
|
|||
if new:
|
||||
namespace = unique_namespace(namespace)
|
||||
cmds.namespace(add=namespace)
|
||||
|
||||
if relative_names is not None:
|
||||
cmds.namespace(relativeNames=relative_names)
|
||||
try:
|
||||
cmds.namespace(set=namespace)
|
||||
yield namespace
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import maya.cmds as cmds
|
|||
|
||||
|
||||
def _process_reference(file_url, name, namespace, options):
|
||||
"""_summary_
|
||||
"""Load files by referencing scene in Maya.
|
||||
|
||||
Args:
|
||||
file_url (str): fileapth of the objects to be loaded
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue