Re: [Maya-Python] PLUG: Python for Maya: Udemy course

2016-12-15 Thread md
Dhruv picked up the course on sale ... what parts deal with 2017 and the changes to qt/pyside ... thanks ! -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails

[Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread md
Ok ... so thanks to everyone for the help ... *Eric *... I did need to have (*args) in the function definition that shows my window. *Justin *... I did end up restructuring my window creation/parenting as follows ... def __init__(self, parent=None): if parent is None:

Re: [Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread md
its getting called at the bottom of the script below the class ... if __name__ == "__main__": try: test_ui.deleteLater() except: pass test_ui = smRealCameras() try: test_ui.create() test_ui.show() except:

Re: [Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread md
Yes .. the menu call back is instantiating the the class. When I run the script from the script editor or call it form the command line it runs fine. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from

Re: [Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread md
I am passing the result of maya_main_window which is a result of wrapInstance ... I thought I needed to do this in order to get Maya to be the parent window .. otherwise my dialogs could fall behind Maya ... no ? -- You received this message because you are subscribed to the Google Groups

[Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread md
After moving the imports into the build section of my userSetup.py as you suggested I was able to get the menu to appear in Maya ... but when I attempted to run the script from the menu I got the following error in the log window ... // Error: 'PySide.QtGui.QDialog' called with wrong argument

[Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread md
I get this error in my script editor when I try to execute the script from the menu after moving the lines you mentioned // Error: 'PySide.QtGui.QDialog' called with wrong argument types: # PySide.QtGui.QDialog(bool) # Supported signatures: # PySide.QtGui.QDialog(PySide.QtGui.QWidget =

[Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread md
thanks ... ill give that a try .. hey is there a way for me to resource usersetup.py so I don have to quit and relaunch Maya to see my changes to userSetup.py ? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To

[Maya-Python] need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread md
Hey Guys, I am building my own Maya menu through userSetup.py ... I have written another python script which is basically just a pySide class. I want to call this script from the menu created in userSetup.py. There is no main function .. just the class that gets instantiated at the bottom of

[Maya-Python] need help with userSetup.py

2016-02-15 Thread md
Hey Guys, I am building my own Maya menu through userSetup.py ... I have written another python script which is basically just a pySide class. I want to call this script from the menu created in userSetup.py. There is no main function .. just the class that gets instantiated at the bottom of

[Maya-Python] Maya, Modules and Shelves Oh My ...

2014-08-01 Thread md
What a lame name for a post .. ahahahaha. Anyway ... I have a bunch of python scripts completed. I decided to try an use the Maya module paradigm for sharing these with the guys in the office. so I have *\my_module* *\icons* *-bunch of icons * *\plug-ins (empty)* *\presets (empty)*

Re: [Maya-Python] Maya, Modules and Shelves Oh My ...

2014-08-01 Thread md
over shared assets. On 1 August 2014 15:44, md acco...@mdonovan.com javascript: wrote: What a lame name for a post .. ahahahaha. Anyway ... I have a bunch of python scripts completed. I decided to try an use the Maya module paradigm for sharing these with the guys in the office. so I have

Re: [Maya-Python] Maya, Modules and Shelves Oh My ...

2014-08-01 Thread md
Putting the paths in my maya.env seems to work. On Friday, August 1, 2014 12:51:29 PM UTC-4, md wrote: Ok ... but I would really like to have a company shelf load automatically when maya launches. That way I could update the shelf to make scripts available to artists. On Friday, August

[Maya-Python] REGEX Question

2014-07-30 Thread md
Hey guys, I am fairly new to regular expressions. When I want to get the delimiter between a filename and framenumber I am using the following regex. f = myawesome_filename_v1_0001.exr pat = re.compile*('[\.|\_]\d+[\.]\w{3}')* x = re.search(pat, f)

[Maya-Python] PySide Progress Bar

2014-07-30 Thread md
Does anyone know if there is a way to display text within the PySide progressbar ? Right now its displaying a percentage for me. I'd love to show what it is actually doing as well. THanks -- You received this message because you are subscribed to the Google Groups Python Programming for

[Maya-Python] Re: REGEX Question

2014-07-30 Thread md
This is really great info ... much appreciated. elrond ... that is indeed KR from The Thing ! I used to have hair like that .. a decade ago ! hahaha. -- You received this message because you are subscribed to the Google Groups Python Programming for Autodesk Maya group. To unsubscribe from

[Maya-Python] Re: Discount coupon codes for my training vids

2014-07-30 Thread md
ugh On Tuesday, July 29, 2014 6:46:10 PM UTC-4, Justin Israel wrote: Since my training vids have been out for a long while now, I asked for some discount coupon codes to be created with really long expiration times, so that I could give them to the group. In case anyone wants to pass these

[Maya-Python] Calling external programs from your Python script using subprocess and os.system

2014-07-28 Thread md
I have a question about calling external programs from inside Maya using Python. (in this case an image viewer) I am trying the following : *from subprocess import call* and then inside my code using : *call([rv_path, '+_review_arg+']) * The program launches , but its in a modal state for

Re: [Maya-Python] Calling external programs from your Python script using subprocess and os.system

2014-07-28 Thread md
worked great ... why have both ? On Monday, July 28, 2014 2:05:08 PM UTC-4, Marcus Ottosson wrote: Try subprocess.Popen instead. On 28 July 2014 18:32, md acco...@mdonovan.com javascript: wrote: I have a question about calling external programs from inside Maya using Python

Re: [Maya-Python] Calling external programs from your Python script using subprocess and os.system

2014-07-28 Thread md
to stdin. Also with Popen, you should be able to just pass all args broken up into a list and it handles the quoting for you: [cmd, arg, -v, --flag, quoted with spaces] On 29/07/2014 6:12 AM, md acco...@mdonovan.com javascript: wrote: worked great ... why have both ? On Monday, July 28

[Maya-Python] Couple of housekeeping questions ....

2014-07-28 Thread md
I have a couple general housekeeping questions for you guys ... 1. Where do you store your persistent application settings ? 2. How/Where do you check to see if a dialog you have wrapped in the Maya application exists so it does not create multiple instances ? Thanks M -- You received this

Re: [Maya-Python] Couple of housekeeping questions ....

2014-07-28 Thread md
omg On Monday, July 28, 2014 4:56:36 PM UTC-4, Marcus Ottosson wrote: This couldn't have been a coincidence, could it? :-) http://tech-artists.org/forum/showthread.php?4872-Storing-settings-for-toolsp=25084#post25084 On 28 July 2014 21:51, md acco...@mdonovan.com javascript: wrote: I

[Maya-Python] QtGui.QDialog .... how do you show the Maximize button on the window ??

2014-07-25 Thread md
Thanks !!! =) M -- You received this message because you are subscribed to the Google Groups Python Programming for Autodesk Maya group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion

[Maya-Python] Retrieving Lists of Render Sequences

2014-07-24 Thread md
Hey Guys, I am starting to feel like I am spamming this group :-P Before I reinvent the wheel ... has anyone written an functions that retrieve image sequences from a folder ? The the less straight forward parts are as follows : - I need to be able to retrieve multiple sequences within a

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-24 Thread md
of the libraries you need. In the case of numpy however I’m not sure one exists. ​ On 23 July 2014 16:34, Eric Thivierge ethiv...@hybride.com javascript: wrote: Or just used the system's python? :) On Wednesday, July 23, 2014 11:31:58 AM, md wrote: I cant spend all day looking

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-24 Thread md
Thanks to all !! I feel like a little kid that has been give a key to the gun rack. ;-) -- You received this message because you are subscribed to the Google Groups Python Programming for Autodesk Maya group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Maya-Python] Stupid Question About Maya's Project Paradigm

2014-07-24 Thread md
Ok ... So coming from Softimage ... I am used to the application understanding that the current project is the one where I open the scene. Softimage knows that a scene opened from within the \scenes\ directory or any subdirectory there-within is part of that project. How do I ensure that the

Re: [Maya-Python] Stupid Question About Maya's Project Paradigm

2014-07-24 Thread md
artists though (setting a project BEFORE opening a scene). On 7/24/2014 9:43 AM, md wrote: Ok ... So coming from Softimage ... I am used to the application understanding that the current project is the one where I open the scene. Softimage knows that a scene opened from within

Re: [Maya-Python] Retrieving Lists of Render Sequences

2014-07-24 Thread md
javascript: wrote: Maybe this? http://opensourcevfx.org/2012/11/openbatchio/ Also check that site for other useful stuff... Eric T. On Thursday, July 24, 2014 9:52:24 AM, md wrote: Hey Guys, I am starting to feel like I am spamming this group :-P Before I reinvent the wheel ... has

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread md
I am now using a userSetup.py to set python paths. The modules are being found, but I am running into trouble loading them. Specifically numpy. As far as I know Maya 2015 uses Python 2.7. I downloaded the latest numpy for python 2.7. It installes (by default) in my

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread md
When I launch my Python shell I can see that it is [MSC v.1500 64 bit (AMD64)] So I need to find a version of python 27 that was compiled on 2010 if I want to be safe .. and find modules compiled w/ 2010 as well ? How does one find these ? I guess google ? Thanks M On Wednesday, July 23,

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread md
of legalities, but I wish that Autodesk would have recompiled the most widely used libraries and included them with Maya. On Wednesday, July 23, 2014 11:16:52 AM UTC-4, md wrote: When I launch my Python shell I can see that it is [MSC v.1500 64 bit (AMD64)] So I need to find a version of python

[Maya-Python] Re: Bar Charts with PySide

2014-07-23 Thread md
. http://www.pyqtgraph.org/ Thanks Liju K On Wednesday, 23 July 2014 00:27:00 UTC+5:30, md wrote: Has anyone here done any sort of bar charting with PySide ? Are there any existing modules for this kind of thing ? Thanks M -- You received this message because you are subscribed

[Maya-Python] PySide Decorators ... can someone explain them and why I might need them ??

2014-07-22 Thread md
I found this in the docs ... Although PyQt4 allows any Python callable to be used as a slot when connecting signals, it is sometimes necessary to explicitly mark a Python method as being a Qt slot and to provide a C++ signature for it. PyQt4 provides the pyqtSlot() function decorator to do

[Maya-Python] Re: PySide Decorators ... can someone explain them and why I might need them ??

2014-07-22 Thread md
Thanks ... I will give that link a read ! On Tuesday, July 22, 2014 11:22:47 AM UTC-4, md wrote: I found this in the docs ... Although PyQt4 allows any Python callable to be used as a slot when connecting signals, it is sometimes necessary to explicitly mark a Python method as being a Qt

[Maya-Python] Bar Charts with PySide

2014-07-22 Thread md
Has anyone here done any sort of bar charting with PySide ? Are there any existing modules for this kind of thing ? Thanks M -- You received this message because you are subscribed to the Google Groups Python Programming for Autodesk Maya group. To unsubscribe from this group and stop

[Maya-Python] PYTHONPATH and additional modules

2014-07-22 Thread md
Hey guys , I am having some trouble. I installed matplotlib using easy_install. The following runs fine in idle ... from pyparsing import * from pylab import * however within Maya I get the following error... // Error: No module named pyparsing # Traceback (most recent call last): # File

[Maya-Python] Re: PYTHONPATH and additional modules

2014-07-22 Thread md
So I got the modules loading by using the following in my maya.env PYTHONPATH=%PYTHONPATH%;%MAYA_LOCATION%;C:\Python27;C:\Python27\Lib\site-packages ;C:\Python27\Lib\site-packages\dateutil;C:\Python27\Lib\site-packages\matplotlib;C:\Python27\Lib\site-packages\numpy There has to be a better way.

[Maya-Python] qProgressbar update questions

2014-07-21 Thread md
Hey guys I have a couple functions where I am copying files. I want to update a progressbar on my form. Here is the basic code (this is inside a function on the form) : inc_val = (100 / hi_val - low_val ) bar_val = 0 for f_no in range(low_val,hi_val): bar_val += inc_val

[Maya-Python] Re: qProgressbar update questions

2014-07-21 Thread md
Kurian ... thanks .. but I actually made a typo when typing the question ... In my code it is self.ui.pgr_copy_files.setValue = bar_val still it does not update. On Monday, July 21, 2014 5:51:41 PM UTC-4, md wrote: Hey guys I have a couple functions where I am copying files. I want

[Maya-Python] Re: qProgressbar update questions

2014-07-21 Thread md
Kurian ... Thanks ... my code was actually self.ui.pgr_copy_files.setValue = bar_val brain fart i guess .. your response helped me pick it out ... thanks !! On Monday, July 21, 2014 5:51:41 PM UTC-4, md wrote: Hey guys I have a couple functions where I am copying files. I want to update

[Maya-Python] QListWidget clicked not working

2014-07-17 Thread md
Hey Again Thanks for all the help .. I have to say this Maya community really is awesome. So I am nearing the finish line, but I need to be able to capture the 'click' events on my QlistView objects. Here is an example of code from my create _connections(self) ... lv_versions is a

Re: [Maya-Python] QListWidget clicked not working

2014-07-17 Thread md
:43 AM, md acco...@mdonovan.com javascript: wrote: Hey Again Thanks for all the help .. I have to say this Maya community really is awesome. So I am nearing the finish line, but I need to be able to capture the 'click' events on my QlistView objects. Here is an example of code from my

[Maya-Python] Re: QListWidget clicked not working

2014-07-17 Thread md
ARGH ! The forms create_conenctions() funtion does not do much if you never call it =(. Sorry for the wasted bandwidth. On Thursday, July 17, 2014 3:43:41 PM UTC-4, md wrote: Hey Again Thanks for all the help .. I have to say this Maya community really is awesome. So I am nearing

[Maya-Python] Maya Shelf and Script Netowrk Repository

2014-07-16 Thread md
Hey Guys, I am sure this is an* RTFM* question ... but can anyone point me to instructions on setting up a network repository for scripts and shelves I want to auto-load on all our workstations ? I will continue to read the docs, but thought someone here might be able to give me direct

[Maya-Python] PyQT object error ?

2014-07-15 Thread md
I am getting this error after showing a PyQT Dialog ... // Error: 'ListLayersDialog' object has no attribute 'winEvent' # Traceback (most recent call last): # File maya console, line 28, in module # AttributeError: 'ListLayersDialog' object has no attribute 'winEvent' // Here is the class

Re: [Maya-Python] Flushing PyQT classes from Maya's Memory

2014-07-15 Thread md
it. All widgets in the parent child chain will delete. http://qt-project.org/doc/qt-4.8/qt.html#WidgetAttribute-enum This may not be exactly the problem you are having so you might need to explain the unwanted behavior a bit more On 16/07/2014 4:22 AM, md acco...@mdonovan.com javascript

Re: [Maya-Python] PyQT object error ?

2014-07-15 Thread md
that does not exist ☺ On 15/07/2014 11:48 PM, md acco...@mdonovan.com javascript: wrote: I am getting this error after showing a PyQT Dialog ... // Error: 'ListLayersDialog' object has no attribute 'winEvent' # Traceback (most recent call last): # File maya console, line 28, in module

[Maya-Python] Re: Getting the selected renderLayers

2014-07-14 Thread md
Thanks, but this only returns a single layer (current layer) . I want to return all the layers selected in the Layer Editor (if there is a multiselection) On Friday, July 11, 2014 5:41:24 PM UTC-4, md wrote: I know how to get all my renderLayers using something like : x = cmds.ls(type

[Maya-Python] Re: Getting the selected renderLayers

2014-07-14 Thread md
Thanks, but this only returns a single layer (current layer) . I want to return all the layers selected in the Layer Editor (if there is a multiselection) -- You received this message because you are subscribed to the Google Groups Python Programming for Autodesk Maya group. To unsubscribe

[Maya-Python] addAttr Question (noob)

2014-07-11 Thread md
Hey Guys Another Maya noob question ... I am adding custom attributes to a node created by my script. I want the attribute visible, but not keyable. Is this the most efficient way to do this ? x = cmds.createNode( 'transform', n='sm_scene_data' ) cmds.addAttr(x, at='short',

[Maya-Python] addAttr question

2014-07-11 Thread md
Hey Guys Another Maya noob question ... I am adding custom attributes to a node created by my script. I want the attribute visible, but not keyable. Is this the most efficient way to do this ? x = cmds.createNode( 'transform', n='sm_scene_data' ) cmds.addAttr(x, at='short',

Re: [Maya-Python] Recommendations for Diving into Python/PySide/QT for Maya

2014-07-11 Thread md
I agree with Marcus. Most of the newer pipeline tools I am coding are external to any software package. However, since we are just switch to Maya from Softimage, there is somewhat of a timecrunch to get this stuff going. The one thing I cannot stand is that even if you go the PyQT route, you

[Maya-Python] Render Settings ... grabbing the image extension.

2014-07-11 Thread md
Hey Guys, So I am pulling the information from RenderGlobals and I see that when I have a pass set up as an *.exr *Maya is returning a value of 51 from imageFormat. 51 indicates a file type of *Custom (51).* Is there a way to access the constant definitions so I can return a string ? Also ..

[Maya-Python] Recommendations for Diving into Python/PySide/QT for Maya

2014-07-10 Thread md
Hey Guys, I am just starting (yesterday actually) to convert our Softimage Rendering Pipeline to Maya. The first thing I need to be able to do is access and change the various Render Settings per Render Layer. Since there is Python 1 API,Python 2 API, PyMel etc. I'm a bit confused at where I

Re: [Maya-Python] Recommendations for Diving into Python/PySide/QT for Maya

2014-07-10 Thread md
UTC-4, Marcus Ottosson wrote: Hi md, Vague descriptions get vague answers. Best is subjective and a number of things in Maya can't be directly compared to Softimage. For anyone getting started with Python in Maya, I'd point you to maya.cmds and tell you to stick to your guns until you

[Maya-Python] Meta Data Containers in Maya

2014-07-10 Thread md
Hey Guys, Another Maya noob question. Where do you guys store ancillary meta data for a scene ? For example, say I want to store data in the scene that keeps the users ip address, network login etc. Is there a 'UserData' node I can create ? Or do you create something like a null or locator

Re: [Maya-Python] Meta Data Containers in Maya

2014-07-10 Thread md
per default in every scene, such as “persp”. That’s pretty much all ways to go about it that I can think of, each carry their own pros and cons. ​ On 10 July 2014 21:14, md acco...@mdonovan.com javascript: wrote: Hey Guys, Another Maya noob question. Where do you guys store

[Maya-Python] Maya and MyQT(PyQT) noob

2014-07-02 Thread md
Hey Guys, Has anyone compiled PyQT for Maya 2015 (Windows 7 - 64bit) ? I really don't want to have to learn how to compile this using Microsoft Visual Studio (yikes !) I need to convert my Softimage scripts to Maya and I would really like to use QT. Thanks m -- You received this message