-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maya: Look Manager Cross Project Compatibility #2481
Comments
The main logic the Look Manager uses to "find" related looks are based soley on The harder part is knowing whether solely an asset id is actually from within the current project or not. This would require more data to be passed around. Which might only be ever possible for geometry that is NOT imported from the library but remains loaded inside a For the assignments themselves all that should be really necessary is Be aware that the Look Assigner does also query the latest version based on solely the subset name in the list I don't know much about the logic of the Library Loader so I'm keen to hearing about what would be logical code-wise. The easiest fix might be to add a dropdown to the Maya Look Assigner - similar to the Library Loader. Which defaults to "" but allows you to look for looks inside of the Library (instead of guessing based on what geometry is selected). This would require a def list_looks(asset_id, dbcon=None):
"""Return all look subsets for the given asset
This assumes all look subsets start with "look*" in their names.
"""
if dbcon is None:
dbcon = avalon.io
# # get all subsets with look leading in
# the name associated with the asset
subset = dbcon.find({"parent": bson.ObjectId(asset_id),
"type": "subset",
"name": {"$regex": "look*"}})
return list(subset) Then if you'd want to automate slightly more for the user to find the right project to search in you could add an extra button next to the project dropdown that basically gets the containers from the selected nodes in your scene, and sets that particular project. |
This is quite closely related to this discussion #1559 |
There's relatively little activity on this issue. However, if there's anyone in dire need of this feature for an upcoming production I'd be happy to take a look at implementing it. |
Is your feature request related to a problem? Please describe.
You cannot load a look from a Library project.
Describe the solution you'd like
Enable the Look Manager to load looks from other projects than the current one.
[cuID:OP-2286]
The text was updated successfully, but these errors were encountered: