also change avalon to AYON

This commit is contained in:
Jakub Trllo 2024-03-25 12:05:58 +01:00
parent cf1d9b1919
commit 0f0f29a7b0
11 changed files with 20 additions and 20 deletions

View file

@ -27,7 +27,7 @@ AYON addons should contain separated logic of specific kind of implementation, s
- default interfaces are defined in `interfaces.py`
## IPluginPaths
- addon wants to add directory path/s to avalon or publish plugins
- addon wants to add directory path/s to publish, load, create or inventory plugins
- addon must implement `get_plugin_paths` which must return dictionary with possible keys `"publish"`, `"load"`, `"create"` or `"actions"`
- each key may contain list or string with a path to directory with plugins

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
"""3dsmax specific Avalon/Pyblish plugin definitions."""
"""3dsmax specific AYON/Pyblish plugin definitions."""
from abc import ABCMeta
import six

View file

@ -261,7 +261,7 @@ def popup():
def update_menu_task_label():
"""Update the task label in Avalon menu to current session"""
"""Update the task label in AYON menu to current session"""
if IS_HEADLESS:
return

View file

@ -361,13 +361,13 @@ def parse_container(container):
def _ls():
"""Yields Avalon container node names.
"""Yields AYON container node names.
Used by `ls()` to retrieve the nodes and then query the full container's
data.
Yields:
str: Avalon container node name (objectSet)
str: AYON container node name (objectSet)
"""
@ -384,7 +384,7 @@ def _ls():
}
# Iterate over all 'set' nodes in the scene to detect whether
# they have the avalon container ".id" attribute.
# they have the ayon container ".id" attribute.
fn_dep = om.MFnDependencyNode()
iterator = om.MItDependencyNodes(om.MFn.kSet)
for mobject in _maya_iterate(iterator):

View file

@ -899,7 +899,7 @@ class ReferenceLoader(Loader):
cmds.disconnectAttr(input, node_attr)
cmds.setAttr(node_attr, data["value"])
# Fix PLN-40 for older containers created with Avalon that had the
# Fix PLN-40 for older containers created with AYON that had the
# `.verticesOnlySet` set to True.
if cmds.getAttr("{}.verticesOnlySet".format(node)):
self.log.info("Setting %s.verticesOnlySet to False", node)

View file

@ -150,7 +150,7 @@ def load_package(filepath, name, namespace=None):
containers.append(container)
# TODO: Do we want to cripple? Or do we want to add a 'parent' parameter?
# Cripple the original avalon containers so they don't show up in the
# Cripple the original AYON containers so they don't show up in the
# manager
# for container in containers:
# cmds.setAttr("%s.id" % container,
@ -175,7 +175,7 @@ def _add(instance, representation_id, loaders, namespace, root="|"):
namespace (str):
Returns:
str: The created Avalon container.
str: The created AYON container.
"""
@ -244,7 +244,7 @@ def _instances_by_namespace(data):
def get_contained_containers(container):
"""Get the Avalon containers in this container
"""Get the AYON containers in this container
Args:
container (dict): The container dict.
@ -256,7 +256,7 @@ def get_contained_containers(container):
from .pipeline import parse_container
# Get avalon containers in this package setdress container
# Get AYON containers in this package setdress container
containers = []
members = cmds.sets(container['objectName'], query=True)
for node in cmds.ls(members, type="objectSet"):

View file

@ -108,7 +108,7 @@ class LoadVDBtoArnold(load.LoaderPlugin):
from maya import cmds
# Get all members of the avalon container, ensure they are unlocked
# Get all members of the AYON container, ensure they are unlocked
# and delete everything
members = cmds.sets(container['objectName'], query=True)
cmds.lockNode(members, lock=False)

View file

@ -115,7 +115,7 @@ class LoadVDBtoRedShift(load.LoaderPlugin):
def remove(self, container):
from maya import cmds
# Get all members of the avalon container, ensure they are unlocked
# Get all members of the AYON container, ensure they are unlocked
# and delete everything
members = cmds.sets(container['objectName'], query=True)
cmds.lockNode(members, lock=False)

View file

@ -277,7 +277,7 @@ class LoadVDBtoVRay(load.LoaderPlugin):
def remove(self, container):
# Get all members of the avalon container, ensure they are unlocked
# Get all members of the AYON container, ensure they are unlocked
# and delete everything
members = cmds.sets(container['objectName'], query=True)
cmds.lockNode(members, lock=False)

View file

@ -79,12 +79,12 @@ def iter_history(nodes,
def collect_input_containers(containers, nodes):
"""Collect containers that contain any of the node in `nodes`.
This will return any loaded Avalon container that contains at least one of
the nodes. As such, the Avalon container is an input for it. Or in short,
This will return any loaded AYON container that contains at least one of
the nodes. As such, the AYON container is an input for it. Or in short,
there are member nodes of that container.
Returns:
list: Input avalon containers
list: Input loaded containers
"""
# Assume the containers have collected their cached '_members' data

View file

@ -128,7 +128,7 @@ class NukeHost(
register_creator_plugin_path(CREATE_PATH)
register_inventory_action_path(INVENTORY_PATH)
# Register Avalon event for workfiles loading.
# Register AYON event for workfiles loading.
register_event_callback("workio.open_file", check_inventory_versions)
register_event_callback("taskChanged", change_context_label)
@ -230,9 +230,9 @@ def get_context_label():
def _install_menu():
"""Install Avalon menu into Nuke's main menu bar."""
"""Install AYON menu into Nuke's main menu bar."""
# uninstall original avalon menu
# uninstall original AYON menu
main_window = get_main_window()
menubar = nuke.menu("Nuke")
menu = menubar.addMenu(MENU_LABEL)