mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Ensure AVALON_PROJECT is set.
This commit is contained in:
parent
ec97e66d97
commit
3ee587c699
1 changed files with 6 additions and 0 deletions
|
|
@ -261,6 +261,12 @@ class RVAction(BaseAction):
|
|||
def get_file_paths(self, session, event):
|
||||
"""Get file paths from selected components."""
|
||||
|
||||
link = session.get(
|
||||
"Component", list(event["data"]["values"].values())[0]
|
||||
)["version"]["asset"]["parent"]["link"][0]
|
||||
project = session.get(link["type"], link["id"])
|
||||
os.environ["AVALON_PROJECT"] = project["name"]
|
||||
api.Session["AVALON_PROJECT"] = project["name"]
|
||||
io.install()
|
||||
|
||||
paths = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue