-
Notifications
You must be signed in to change notification settings - Fork 46
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
Fix#335 #347
Fix#335 #347
Conversation
Was thinking about adding buttons for switching targets directly in QML, and here's what I have got. DirectionsThe newly added tab was called For listing multiple pyblish_qml.settings.Directions = {
"Remote Publish": {
"description": "Publish in remote machine",
"targets": ["default", "deadline"],
},
"Local Publish": {
"description": "Publish via local machine",
"targets": ["default", "localhost"],
},
} QML will pick up and listing them in tab as buttons, and indicate current targets. Note that this is backward compatible, so it's okay to leave MotivationAfter #335 been fixed, you still need to press button out side of QML for changing targets, so I though maybe we could improve this a bit further by adding this feature. Please let me know what you think, and I'll elaborate more later today. :) |
Looks interesting. I'm a little unsure of how targets are being used, so I can't give a definite opinion on how to represent it visually. Overall, I would have thought "target" is the most important and first choice to make when publishing. Like when you go to McDonalds and make your selection in one of their order screens, you start by choosing "Eat in" or "Take away". For targets, I would have thought that this choice should come even before a Pyblish GUI is shown, like as another option for showing the GUI.
With that in mind, it seems a little backwards to have it nested three or more clicks into the GUI. But then again, maybe this is a decision you make late, or several times from within the same publishing session?
Not too sure about this one, would rather not introduce more jargon; I can already hear the questions in email, chat and forums xD How about making it a list if checkboxes instead? One where |
Yes, that's definitely, so in production there's a few buttons (currently two of them here) for artist to pick.
Yes ! That's what it's for, but also an indicator for current targets.
I have thought about that too. :P But I think the best is to make user can only select one target from GUI, since there may have conflict between targets. Like
I think we need, |
What happens with the environment/plugins when you choose a different target?
I think the terminology will get confusing if you call the tab
@davidlatwe do you have a use-case for using different targets within the same session? |
If you only selecting targets, nothing will happen, the targets only get sets to host when you press reset button on and only on that tab. And once you press the reset, yes, the collection would be refreshed as well. :)
Haha, second objection vote ! Then I'll change that in GUI, but I think I still need that name internally for naming variables, need a think. :P
The example use case would be, like publishing cameras and renders from the same scene, the camera only need to be published from local machine, but the renders require to be sent to render farm. So there's two sets of targets need to switch. |
I completely forgot how the targets worked there :) Nice work! |
On vacation till Wednesday so my reply might be brief. Looks really nice!! Some artists on our end will love this. Not sure about the I wonder if we need that separate page or whether it could be part of something like a pop-up combobox styled like that (very nice and clear!) when maybe clicking on the targets or having a clear button on the main page that describes you can switch. In the meantime the standalone page is a very nice setup. |
Unable to test this myself. But just the fix itself for changing the targets in the main session would be great to see merged. Other than that, the GUI issue into its own PR would make things easier yes. Nice work on both though! |
Hold up a minute, at the moment, |
Hmmm, I don't think so. Since the main pyblish logic (main iter) is running in So the host only responsible for discovering plugins and executing plugins which assigned by |
The
|
Ok, I think that makes sense. It runs via the same "channel" as showing/hiding the GUI, whilst still running. Was a little worried we introduced a new line of communication, when we clearly are already capable of communicating with plug-ins/instances. But this looks legit, thanks for confirming. Happy with this. 👍 |
Thanks @mottosso |
This PR resolves #335, with some PEP8 changes, and fixed one minor bug.