mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
doc string tweak & make sure loading ornatrix plugin compatible with all systems
This commit is contained in:
parent
6cbab06cc4
commit
335ed3b844
5 changed files with 8 additions and 9 deletions
|
|
@ -4254,7 +4254,7 @@ def search_textures(filepath):
|
|||
dynamic patterns like <UDIM> or %04d
|
||||
|
||||
Returns:
|
||||
list: The files found on disk
|
||||
list[str | clique.Collection]: The files found on disk
|
||||
|
||||
"""
|
||||
filename = os.path.basename(filepath)
|
||||
|
|
@ -4299,7 +4299,7 @@ def get_sequence(filepath, pattern="%04d"):
|
|||
pattern (str): The pattern to swap with the variable frame number.
|
||||
|
||||
Returns:
|
||||
list: clique.Collection.
|
||||
list[clique.Collection]: List of sequence frame collections.
|
||||
|
||||
"""
|
||||
import clique
|
||||
|
|
@ -4312,7 +4312,6 @@ def get_sequence(filepath, pattern="%04d"):
|
|||
if re.match(re_pattern, f)]
|
||||
|
||||
pattern = [clique.PATTERNS["frames"]]
|
||||
collection, remainder = clique.assemble(
|
||||
collections, remainder = clique.assemble(
|
||||
files, patterns=pattern, minimum_items=1)
|
||||
|
||||
return collection
|
||||
return collections
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class OxCacheLoader(plugin.Loader):
|
|||
|
||||
"""
|
||||
# Ensure Ornatrix is loaded
|
||||
cmds.loadPlugin("Ornatrix.mll", quiet=True)
|
||||
cmds.loadPlugin("Ornatrix", quiet=True)
|
||||
|
||||
product_type = context["product"]["productType"]
|
||||
# Build namespace
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class OxRigLoader(plugin.ReferenceLoader):
|
|||
|
||||
# Check if the plugin for Ornatrix is available on the pc
|
||||
try:
|
||||
cmds.loadPlugin("Ornatrix.mll", quiet=True)
|
||||
cmds.loadPlugin("Ornatrix", quiet=True)
|
||||
except Exception as exc:
|
||||
self.log.error("Encountered exception:\n%s" % exc)
|
||||
return
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class ExtractOxCache(plugin.MayaExtractorPlugin):
|
|||
families = ["oxrig", "oxcache"]
|
||||
|
||||
def process(self, instance):
|
||||
cmds.loadPlugin("Ornatrix.mll", quiet=True)
|
||||
cmds.loadPlugin("Ornatrix", quiet=True)
|
||||
# Define extract output file path
|
||||
ox_nodes = cmds.ls(instance[:], long=True)
|
||||
dirname = self.staging_dir(instance)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class ExtractOxRig(plugin.MayaExtractorPlugin):
|
|||
|
||||
def process(self, instance):
|
||||
"""Plugin entry point."""
|
||||
cmds.loadPlugin("Ornatrix.mll", quiet=True)
|
||||
cmds.loadPlugin("Ornatrix", quiet=True)
|
||||
maya_settings = instance.context.data["project_settings"]["maya"]
|
||||
ext_mapping = {
|
||||
item["name"]: item["value"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue