Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Toke Jepsen
@tokejepsen
Just so I know the use case, you want to
  1. Validate first.
  2. Run actions that fixes the validation issues.
  3. Continue the publish.
    Is that right?
Erik Johansson
@Eiken
yeah
it seems to confuse artists that they need to redo it all after fixing something
but it kinda makes sense as the fix might make other things not validate
i might just have to inform them more
Toke Jepsen
@tokejepsen
Yeah, the problem is that running actions isn't a guarantee that the validation issues are fixed.
Found lots of times, especially when introducing new validators, that there are edge case that the actions didn't account for, but the validator did.
Toke Jepsen
@tokejepsen
This might be overkill but interesting. If we somehow saved the context before validation, we could essentially revalidate single validators after an action is run.
Marcus Ottosson
@mottosso
Having the option to run individual validators at will is a great goal I think
There is nothing stopping that technically, its purely a UI issue
Toke Jepsen
@tokejepsen
Yeah, you could keep the context in memory until reset, right?
Marcus Ottosson
@mottosso
Sure could
Technically forever, but GUIs generally make a new one on reset
Toke Jepsen
@tokejepsen
Forever would also be a memory hog, I guess.
Erik Johansson
@Eiken
totally offtopic but anyone know a fast way to do mc.polyMoveVertex(s, constructionHistory=False)
it is sooooooo slow
or hmm
now it didnt take long
what
btw on the action, how do i make the icon turn red if it fails? is it assert False as with validators?
Toke Jepsen
@tokejepsen
yeah, raising any errors should do it.
assert False, "something" or raise ValueError("something")
Erik Johansson
@Eiken
if i would go about adding more tooltips to the interface to help users
they should go in window.py right?
Toke Jepsen
@tokejepsen
Hmmm, that is a good point. What kind of tooltips are you wanting? Describing what a plugin does?
Erik Johansson
@Eiken
basically everything that can be clicked
that is an icon
validators i think middle mouse works fine
as the text can be kinda long
Toke Jepsen
@tokejepsen
Yeah, that would be in window. Might be wrong though @mottosso ?
For plugins middle mouse would work, but a perspective view would be better :)
Marcus Ottosson
@mottosso
window.py is the catch-all for graphics at the moment
I'd start there
As it grows, have a think about which parts you think belong together, and are enough of, to potentially get separated into its own module
Marcus Ottosson
@mottosso

But yes, a Perspective is what's missing

For reference, here's the design document for when it was implemented in QML.

  • pyblish/pyblish-qml#79
Erik Johansson
@Eiken
offtopic but anyone know if there is some random chat for python/pipeline stuff on the net that is not a google discussion group
Toke Jepsen
@tokejepsen
Here? 😀
Erik Johansson
@Eiken
:) didnt know if you wanted it polluted
Toke Jepsen
@tokejepsen
Think we are all interested in off topic stuff as well. There is also an off topic tag on the Pyblish forums😀
Erik Johansson
@Eiken
so offtopic python question then :)
Tractor got a python module that is very neat
but in the same site-packages folder that it lives also nimby and PySide lives
so if I use PYTHONPATH env variable or sys.path.append i have had some fun issues with mismatching versions of those packages in applications that include them
so the question is basically can you load a module with submodules using imp or importlib by full path
i cant get it to work
can only load single files
[erjo@3d47 ~]$ cd /opt/pixar/Tractor-2.2/lib/python2.7/site-packages
[erjo@3d47 site-packages]$ ls -la
total 20
drwxr-xr-x  7 root root    73 Jan  2  2016 .
drwxr-xr-x 26 root root 12288 Mar 30  2016 ..
drwxr-xr-x  3 root root   136 Jan  2  2016 dateutil
drwxr-xr-x  2 root root   106 Jan  2  2016 nimby
drwxr-xr-x  2 root root  4096 Jan  2  2016 PySide
drwxr-xr-x  2 root root    66 Jan  2  2016 rmanpy
drwxr-xr-x  5 root root    56 Jan  2  2016 tractor
how it looks
Marcus Ottosson
@mottosso
Hey, just saw this
Are you familiar with Ecosystem or Rez?