mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix(resolve): removing project preload
This commit is contained in:
parent
f2df4d602e
commit
3722155c48
1 changed files with 3 additions and 4 deletions
|
|
@ -13,8 +13,7 @@ while True:
|
|||
# Create project and set parameters:
|
||||
resolve = get_resolve_module()
|
||||
pm = resolve.GetProjectManager()
|
||||
p = pm.GetCurrentProject()
|
||||
if p.GetName() == "Untitled Project":
|
||||
if pm:
|
||||
ready = None
|
||||
else:
|
||||
ready = True
|
||||
|
|
@ -23,10 +22,10 @@ while True:
|
|||
|
||||
if ready is None:
|
||||
time.sleep(wait_delay)
|
||||
log.info(f"Waiting {wait}s for Resolve to be open in project")
|
||||
log.info(f"Waiting {wait}s for Resolve to have opened Project Manager")
|
||||
wait += wait_delay
|
||||
else:
|
||||
print(f"Preloaded variables: \n\n\tResolve module: "
|
||||
f"`resolve` > {type(resolve)} \n\tProject manager: "
|
||||
f"`pm` > {type(pm)} \n\tCurrent project: `p` > {type(p)}")
|
||||
f"`pm` > {type(pm)}")
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue