-
Notifications
You must be signed in to change notification settings - Fork 49
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
Workfiles: Multiple hosts support #365
Comments
I would vote for option 2 : Move these API methods to the Avalon globally supported hosts and have these methods available in their api. Like, for example, having a sub-module Since the workfile save/load and other definitions are part of the hosts' behavior/features, and possible other tools or plugins would use these methods. |
Ah, I see what's going on. :)
That's sneaky! Yes, any references to any host should reside within the host's own sub-package, like Maya and friends do. Is that what you're suggesting here, @BigRoy? |
Yes, the second way I proposed indeed means removing this |
Refactor to avalon registered host Pushed a new commit that refactors it to use the registered avalon host. For now I moved it into a @mottosso, what do you think? Better? Work Files Root @tokejepsen, I felt a bit weird about always needing to pass Also added some slight documentation into the |
Very nice work on this @BigRoy!
I think the sole reason for not using Could also tackle it the other way around, where you force Maya "scene" directory to be |
I'd actually feel quite strongly that using avalon, we should bypass all software specific folder management tools like workspace.mel in maya. it causes just headaches and brings extra variable that are hard to control fully. |
Great, then the next step is - how do we customize this beyond Would the |
I think the |
@BigRoy I think the scope of this conversation is getting too big for the issue. Maybe we could just work towards getting multiple hosts supported in the workfiles app with using nothing by Avalon requirements. Think setting On that note it would be good to see a PR for this, that we all can work on to get merged?
@mottosso could you elaborate on this? |
This has been implemented with #387 |
…asses_for_automatic_testing Removed orphaned import of mayalookassigner
Issue
Supporting multiple hosts in the Workfiles app was originally laid out in the code, but relatively spread across the
app.py
file. Making it:Now I've done some ground work on support Houdini + Fusion, see this commit and wanted to discuss on the implementation of the
Host
class I set up solely for Workfiles tool.The issue I'm seeing is that it mimics (it being called Host) the
avalon.maya
,avalon.fusion
,avalon.houdini
the basic host integrations that Avalon already has - yet they don't require thesave
,open
, etc. API to be implemented for a Host integration to work with Avalon - just the Workfiles app wouldn't work.Discussion
We can go about this in two ways:
The methods currently required for Workfiles can be found here and comes down to:
save
,open
,current_file
androot
. Their docstrings should elaborate somewhat on what they intend to do.Referenced on Gitter: https://gitter.im/getavalon/Lobby?at=5c403bcdcb47ec3000586afe
The text was updated successfully, but these errors were encountered: