[Maya-Python] Re: Display IFF file in PyQt

2009-08-07 Thread Chad Dombrova
when you say 'deploy' do you mean distributing inside or outside of your workplace? if inside, then you should work with your system administrators to host python modules in a shared location on a server or to distribute modules to user's local machines. if outside, you can use

[Maya-Python] Re: Display IFF file in PyQt

2009-08-07 Thread Jo Jürgens
you can convert them using maya/bin/imgcvt.exe, which will be on all Maya machines, so at least it will work for anyone with Maya On Fri, Aug 7, 2009 at 8:12 AM, Chad Dombrova chad...@gmail.com wrote: when you say 'deploy' do you mean distributing inside or outside of your workplace? if

[Maya-Python] Re: Display IFF file in PyQt

2009-08-07 Thread Jo Jürgens
os.system('imgcvt.exe -f iff -t png '+ iffFile +' '+ pngFile) if you want to display iff files natively in pyqt, my guess is you will have to write something in C (C++?) to make qt read iff files. A bit more work than just converting behind the scenes On Fri, Aug 7, 2009 at 1:05 PM, cracker

[Maya-Python] Re: Display IFF file in PyQt

2009-08-07 Thread Sylvain Berger
the best way I found to display image in maya was to convert them using imf_copy or some other command application, execute a subprocess. You should take a look at the nconvert application... it supports over 300 image format... exept exr 32 bit (http://www.xnview.com/en/nconvert.html) example:

[Maya-Python] userSetup.py location

2009-08-07 Thread sberger
Hi, I have this setup for Maya 2009 My user Pref are localed on the network m:\profiles\sylvain.berger\maya \... in these user pref I have a maya.env file that add a network MAYA_SCRIPT_PATH=m:\library\maya\scripts\ when I put the userSetup.py in the MAYA_SCRIPT_PATH location it doesn't get

[Maya-Python] Re: userSetup.py location

2009-08-07 Thread yury nedelin
we have local userSetup run a global userSetupAll This way we can have local functions run together with functions that are global for every one. yury On Fri, Aug 7, 2009 at 7:44 AM, sberger sylvain.ber...@gmail.com wrote: Hi, I have this setup for Maya 2009 My user Pref are localed on

[Maya-Python] Re: userSetup.py location

2009-08-07 Thread Sylvain Berger
that's a good idea... I finally when with the userSetup.mel calling the network python script... Works fine On Fri, Aug 7, 2009 at 11:50 AM, yury nedelin ynede...@gmail.com wrote: we have local userSetup run a global userSetupAll This way we can have local functions run together with

[Maya-Python] menu created in python

2009-08-07 Thread sberger
So I created this menu in the main menubar in python...the commands attached to these python menuItem are python commands. When select the item in the menu, the python command execute correctly... when I do a shift+CTRL click an item to make a shelf button, it create a mel shelf button!!!

[Maya-Python] Re: menu created in python

2009-08-07 Thread John Creson
scripts/startup/menuItemToShelf.mel is called to do this action, You may be able to do something in here, like ask whatIs myMenuItem; and if it is unknown, assume it is Python? On Fri, Aug 7, 2009 at 1:32 PM, sberger sylvain.ber...@gmail.com wrote: So I created this menu in the main

[Maya-Python] Re: menu created in python

2009-08-07 Thread Sylvain Berger
cool idea... i will investigate this further... Thanks On Fri, Aug 7, 2009 at 2:21 PM, John Creson johncre...@gmail.com wrote: scripts/startup/menuItemToShelf.mel is called to do this action, You may be able to do something in here, like ask whatIs myMenuItem; and if it is unknown,

[Maya-Python] Re: userSetup.py location

2009-08-07 Thread chadrik
we have local userSetup run a global userSetupAll. This way we can have local functions run together with functions that are global for every one. we do something similar, but the other way around. we have a global userSetup.py and userSetup.mel which call user's local userSetup.py

[Maya-Python] Re: menu created in python

2009-08-07 Thread David Moulder
I've heavily modified this script to work with our module system. This is briefly why... On startup part of our module code fire's a python script that parse's an xml file to automaticaly build the menu for that module. Anything added by the menu code will add a doctag to the menu item. This