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
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:
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:
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
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
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
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 =
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
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
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
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)*
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
.
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
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
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
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
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
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.
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
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
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
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
: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
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
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
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
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
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
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
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
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',
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',
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
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 ..
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
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
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
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
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
59 matches
Mail list logo