Skip to content
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

Shotgun Panel context should be back to project context after closing the current AE project #12

Open
mathurf opened this issue Mar 4, 2019 · 4 comments
Assignees
Milestone

Comments

@mathurf
Copy link

mathurf commented Mar 4, 2019

When running AE Shotgun advanced integration (default2 config) and you saved your current AE project with Shotgun File Save, Shotgun Panel integration is set to that task context. But when closing that project or doing a File save via AE File save menu to a different path than the one configured in templates.yml, your current context should be back to the project context. So only Shotgun Open File, Save File and Panel are available.

Steps
1- Save your AE project via Shotgun File save
= Your Shotgun Panel integration context is now set to your task (which is good)
2- Close you current project or do a File save via AE File save menu to a different path than the one configured in templates.yml
= you are still in the task context set previously at step 1

@manneohrstrom manneohrstrom added this to the v0.1 milestone Mar 8, 2019
@martinminsel
Copy link
Contributor

I think the only way we can do this is actually having a QTimer, to observe the filepath of after effects, but I don't think that this solution is very nice, as we would periodically run javascript in main thread of aftereffects.

@manneohrstrom
Copy link
Contributor

manneohrstrom commented Mar 12, 2019

Meeting notes: Something analogous to this exists and works in the photoshop interface. There is an active document changed event in photoshop that we are hooked into.

We should figure out if there is something analogous in AE that we can use.

@martinminsel
Copy link
Contributor

Hi @manneohrstrom ,
I experimented a little with this one. I couldn't find an event that I can use from After Effects, that notifies me everytime the project changed. So my approach was to look at the project with a QTimer, but as expected I experience race conditions, with other scripts, that use the rpc-layer (and javascript) at the same time. Especially the publish makes problems. Alternatively we could look at the window-name, but to implement this on mac AND windows we probably need a little more time. I would like to move this to v0.2 if possible.

@manneohrstrom
Copy link
Contributor

cool. Great. Moving to v0.2!

@manneohrstrom manneohrstrom modified the milestones: v0.1, v0.2 Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants