jukeboxmaya.reftrack

Submodules

Module contents

Package for the reference workflow in maya.

jukeboxmaya.reftrack.get_namespace(taskfileinfo)[source]

Return a suitable name for a namespace for the taskfileinfo

Returns the name of the shot/asset with a “_1” suffix. When you create the namespace the number will automatically be incremented by Maya.

Parameters:taskfileinfo (jukeboxcore.filesys.TaskFileInfo) – the taskfile info for the file that needs a namespace
Returns:a namespace suggestion
Return type:str
Raises:None
jukeboxmaya.reftrack.get_groupname(taskfileinfo)[source]

Return a suitable name for a groupname for the given taskfileinfo.

Parameters:taskfileinfo (jukeboxcore.filesys.TaskFileInfo) – the taskfile info for the file that needs a group when importing/referencing
Returns:None
Return type:None
Raises:None
jukeboxmaya.reftrack.group_content(content, namespace, grpname, grpnodetype)[source]

Group the given content in the given namespace under a node of type grpnodetype with the name grpname

Parameters:
  • content (list) – the nodes to group
  • namespace (str | None) – the namespace to use
  • grpname (str) – the name of the new grpnode
  • grpnodetype (str) – the nodetype for the grpnode
Returns:

the created group node

Return type:

str

Raises:

None