Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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?
In a nutshell, they're environment management tools and what they would do, at a practical level, is to put each of those packages in it's own directory, potentially with it's own version number.
PySide_1.21/
   PySide
tractor_2.5/
  tractor
...
In that way, you add each directory to your PYTHONPATH, and can have multiple co-existing versions alongside each other
$ export PYTHONPATH=$(pwd)/PySide_1.21:$(pwd)/tractor_2.5
Alternatively, as a temporary measure, or if you can't alter that directory, then you could add the path to your sys.path, import tractor and then remove the path again.
tractor would remain cached in sys.modules from anywhere else you import it
Erik Johansson
@Eiken
yeah i got my own version of ecosystem for managing different versions and etc
but i want to avoid modifying the default directory structure of tractor
Marcus Ottosson
@mottosso
Ah ok, so it was more specifically about this particular case
Erik Johansson
@Eiken
temporarily adding and removing sounds like it should be doable
yeah this specific case
i'll give that a try