[Maya-Python] Re: PyQt Question

2012-11-03 Thread PixelMuncher
Since you are just getting started, I'd highly recommend Justin's training video mentioned above. Great way to get off to a comprehensive start ;) On Thursday, October 25, 2012 9:59:14 AM UTC-5, illunara wrote: > > Hello > I'm just getting start with PyQt, so i have some basic question about it

[Maya-Python] Re: Charcoal Editor

2012-10-31 Thread PixelMuncher
I don't know if this was announced anywhere, but the Charcoal Editor is now available. Looks great. He has an introductory price. The usu. disclaimer - I don't know the guy... On Wednesday, August 29, 2012 11:14:46 AM UTC-5, PixelMuncher wrote: > > I was looking at the blue pen

Re: [Maya-Python] Re: [ANN] PyQt4 UI Development for Maya

2012-10-25 Thread PixelMuncher
One more question on this topic: The updated version of blocking.py has process.setProcessChannelMode(process.ForwardedChannels) What is that for? Also: Per my previous comments - humor is always risky in electronic communications, your teaching is excellent, as has been your support on this for

Re: [Maya-Python] Re: [ANN] PyQt4 UI Development for Maya

2012-10-25 Thread PixelMuncher
Just kidding - thanks a lot for the great tech support! Onward to more PyQt. -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe

Re: [Maya-Python] Re: [ANN] PyQt4 UI Development for Maya

2012-10-24 Thread PixelMuncher
Ok, now when I click on the 'Block' button, it locks up the whole window, which is very annoying. -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe

Re: [Maya-Python] Re: [ANN] PyQt4 UI Development for Maya

2012-10-24 Thread PixelMuncher
I want my money back. -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe

[Maya-Python] Re: [ANN] PyQt4 UI Development for Maya

2012-10-24 Thread PixelMuncher
Hey Justin: Thanks so much for creating this. I'm finding it to be quite excellent. Your teaching style is mellow and thorough. I've run into a problem w/my Python Install (Win 7 x64/Maya 2013). Not sure if this is the right place to post, but the forum @ cmi doesn't seem to be working at the

[Maya-Python] Re: Eclipse/Pydev Setup for Maya

2012-10-05 Thread PixelMuncher
Quick followup: I discovered that when sending a selection to the interpreter, the selection must include at least one empty line (no tabs) below the function. Else it won't register correctly and execution as well as 'del()' will fail. Note also if not selected correctly the new definition will

[Maya-Python] Re: Eclipse/Pydev Setup for Maya

2012-09-22 Thread PixelMuncher
Apparently I still don't have Eclipse/Pydev configured quite right. When I try to execute selected code that includes a function, it won't register the function. I have this code in a module: def process_all_textures(): print ('Process all textures.') process_all_textures() print type(process_

[Maya-Python] Re: Eclipse/Pydev Setup for Maya

2012-09-21 Thread PixelMuncher
Thanks *A LOT* for taking the time to explain this Paul. As I was trying to figure out what was going on, I noticed that C: \Program Files\Autodesk\Maya2013\devkit\other\pymel\extras\completion \py\maya\cmds\__init__.py had the Maya commands as empty defs. When I had previously setup Eclipse, I c

[Maya-Python] Re: Eclipse/Pydev Setup for Maya

2012-09-21 Thread PixelMuncher
You are da Man Justin! C:\Program Files\Autodesk\Maya2013\devkit\other\pymel\extras\completion \py Not only did it fix all the import statements, but I now have code completion for Maya commands, which never worked before. There are some pretty complex instructions out there for getting Eclipse/PyD

[Maya-Python] Re: Eclipse/Pydev Setup for Maya

2012-09-20 Thread PixelMuncher
Would that be this path --> C:\Program Files\Autodesk\Maya2013\Python \Lib\site-packages\pymel If so, I tried it but it didn't work. At this point I haven't identified any loss of functionality with my setup, just the annoying red ''x next to the import statements... It seems to me that the questio

[Maya-Python] Eclipse/Pydev Setup for Maya

2012-09-20 Thread PixelMuncher
I rebuilt my Eclipse setup because it wan't executing Python to the Eclipse console, nor Qt commands. I removed all the interpreter stuff and only added back the Python interpreter (not in the Maya folder). At this point I have it working correctly with Python, and sending commands to Maya via

Re: [Maya-Python] Re: New powerful code editor

2012-09-13 Thread PixelMuncher
that you have to explore a bit to realize the > numerous features. I would say it is much lighter and faster than Eclipse > and easier to work with once you set your prefs and hotkeys. I am still > learning it. > > > > On Sep 13, 2012, at 9:36 AM, PixelMuncher > > wrote: >

[Maya-Python] Re: New powerful code editor

2012-09-13 Thread PixelMuncher
After spending the morning trying to fix Eclipse/Pydev problems, I checked out Sublime. It doesn't have a separate list of functions and vars - why do people like it so much? -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.g

[Maya-Python] Charcoal Editor

2012-08-29 Thread PixelMuncher
I was looking at the blue pencil plugin, and came across this today: http://zurbrigg.com/charcoal-editor Looks promising! -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe

[Maya-Python] Re: New powerful code editor

2012-07-02 Thread PixelMuncher
Is there an easy way to connect to Maya so it can send commands? Thx. -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe

[Maya-Python] Re: How to use render tokens in batch render script?

2012-01-03 Thread PixelMuncher
I figured it out: imageName = '"RenderTest_"' # single quote, double quote On Jan 3, 10:27 pm, PixelMuncher wrote: > ... > imageName = 'RenderTest_' > os.system (' render -s ' + startF + ' -e ' + endF + ' -im &

[Maya-Python] How to use render tokens in batch render script?

2012-01-03 Thread PixelMuncher
... imageName = 'RenderTest_' os.system (' render -s ' + startF + ' -e ' + endF + ' -im ' + imageName + ' -r mr -cam ' + renderCam + ' -rd ' + destPath + ' ' + scene2Render ) Error: The system cannot find the file specified. The manual describes the -cts option, but I don't see how to use it. Any

[Maya-Python] Re: Problem Executing Backburner from Python

2011-11-28 Thread PixelMuncher
are defining: > > http://pastebin.com/2U2NCVkJ > > Maybe this method might actually address your issue? > > On Nov 22, 2011, at 11:11 AM, PixelMuncher wrote: > > > > > > > > > Also, I did try surrounding my os cmd with quotes and escaped quotes. > > It do

[Maya-Python] Re: single axis polyAveragevertex

2011-11-27 Thread PixelMuncher
Maybe this will help: verts = cmds.ls (sl=1, fl = 1) numVerts = len(verts) vertLocations = cmds.xform (verts,q=1, t=1) # list of all locations numVertLocations = len(vertLocations) # 3x num verts xIndex = 0 yIndex = 1 zIndex = 2 xTotal = yTotal = zTotal = 0 # Add x,y,z values of all the verts: whi

[Maya-Python] Re: Problem Executing Backburner from Python

2011-11-22 Thread PixelMuncher
BTW, what do I do to prevent the short word wrapping that occurs in my posts? Thx. -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe

[Maya-Python] Re: Problem Executing Backburner from Python

2011-11-22 Thread PixelMuncher
Also, I did try surrounding my os cmd with quotes and escaped quotes. It doesn't like unescaped quotes at all. With escaped quotes, It sees the 2nd escaped quote as an attempt to create a line continuation. However, that may be all that's needed to get this working at this point: os.system (\" ' c

[Maya-Python] Re: Problem Executing Backburner from Python

2011-11-22 Thread PixelMuncher
Program Files (x86)/Autodesk/Backburner/cmdjob.exe\" - jobName \"RenderLayerTest01_Lites142245-111030\" -description \"\" - manager 192.168.2.222 -logPath \"//Pixelmuncher/3d/renderLogs\" - priority 50 -taskList \"C:/Users/Me/AppData/Local/Temp/ RenderLayerT

[Maya-Python] Re: Problem Executing Backburner from Python

2011-11-22 Thread PixelMuncher
ugh using inefficient string concatenation) for your os.system() call so > thats probably not an issue. > If putting the preRender commands into a script fixes it then you know its > backburner/maya. We do the same thing at my studio for queue submissions > using preRender scripts in

[Maya-Python] Problem Executing Backburner from Python

2011-11-21 Thread PixelMuncher
After hours of research, I have backburner being called from a python script and rendering a test scene on 2 networked computers. However, when I try to run a production file that has a long prerender command, backburner errors and exits. After some experimentation, it appears that there is a char

[Maya-Python] Re: Which editor do you use?

2011-10-06 Thread PixelMuncher
I'll put in my 2 cents for Eclipse/Pydev. Works great for me. I have the creative crash plugin working as far as communicating w/ Maya, but I don't think autocomplete will work with straight Python (ie cmds.command...). -- view archives: http://groups.google.com/group/python_inside_maya change y

[Maya-Python] Re: Help w/Var Assignment inside a Class

2011-08-21 Thread PixelMuncher
@ Justin The script is for creating an eyelid rig which tracks the movement of an eyeball (based on Stop Staring 3rd Ed.). I'm not a professional coder but I like to write tools for my own use. I've been using Python for about a year (its my favorite language to date). This is the first time I'm us

[Maya-Python] Re: Help w/Var Assignment inside a Class

2011-08-19 Thread PixelMuncher
Chris: That's what I was looking for. The next best solution I received was using a dictionary inside the class. Thanks much. # Use setattr to 'create an attribute inside the Class: prefix = 'pre_' myColors = ['red','yellow','blue'] class makeVars(object): global red red = '' def creat

[Maya-Python] Re: Help w/Var Assignment inside a Class

2011-08-18 Thread PixelMuncher
Too bad we can't edit our code on this forum... Here's a more concise code to show what I want to do: I have some code which uses vars() to assign a variable name/value inside of a loop. I works correctly in the script editor, but fails from within a Class. In the SE: --- CODE -

[Maya-Python] Help w/Var Assignment inside a Class

2011-08-18 Thread PixelMuncher
I have some code which uses vars() to assign a variable name/value inside of a loop. I works correctly in the script editor, but fails from within a Class. In the SE: -- CODE --- prefix = 'char' lidControls2Make = ['uprLid', 'lwrLid','lwrLidTrack', 'uprLidTrack','uprLidRef','lidRig'] fo

[Maya-Python] Re: Rewrite this as a Python Class?

2011-07-29 Thread PixelMuncher
Justin pretty much summed it up. I'm not a professional coder, but I write a lot of Maya tools for myself. I started w/Mel, then checked out Python, which has become my favorite language. I haven't used classes, and want to find out about what I'm missing. I understand your point of view Alexander

[Maya-Python] Re: Rewrite this as a Python Class?

2011-07-27 Thread PixelMuncher
Thanks much - this gives me something to build upon. @ Justin: Why did you specify an 'object' param to be passed to the class? -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe

[Maya-Python] Rewrite this as a Python Class?

2011-07-26 Thread PixelMuncher
Hi all: Perhaps this is too much to ask, but I've been studying up on Python classes and trying to figure out how to use them in my Maya Coding. I haven't found any good Maya examples. If someone has a few minutes , maybe you could show how this eye rigging code could be written as a class? Thanks

[Maya-Python] Re: how to change this mel code to python?HELP

2011-07-20 Thread PixelMuncher
In the script editor, I keep a tab for mel to Python conversion. You can convert a whole script or just some code. The tab has this code: import pymel.tools.mel2py as mel2py # Beware escaped chars - \t needs to be \\t mel2py.mel2py("C:\Documents and Settings\Administrator\My Documents \maya\myscrip

[Maya-Python] Re: move brush for artisan?

2011-06-13 Thread PixelMuncher
I'd like to have that tool too. If anyone is inclined to share it, please do. I'd imagine there are a lot of Mayans who would be appreciative. -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/

[Maya-Python] Re: Power of Python talk with Jason Parks tonight (rigging dojo live)

2011-04-21 Thread PixelMuncher
Missed it. Could you please post if it will be archived somewhere? Thanks. On Apr 12, 8:18 pm, Josh Carey wrote: > I meant to send this out to the group earlier, so sorry for the late notice. >  Figured a lot of folks might be interested in this on this group :) > > http://www.riggingDojo.com/li

[Maya-Python] Re: import/reload from w/in script?

2011-02-10 Thread PixelMuncher
I received this solution on another forum. Works great: selectedScript = 'someScript' module = __import__(selectedScript) reload(module) -- http://groups.google.com/group/python_inside_maya

[Maya-Python] Re: import/reload from w/in script?

2011-02-09 Thread PixelMuncher
you import from a module by passing it a string > > http://docs.python.org/library/functions.html#__import__ > > eg > > >>> import sys > >>> name = 'foo.bar.baz' > >>> __import__(name) > > cheers, > chrisg > > On 10 February

[Maya-Python] import/reload from w/in script?

2011-02-09 Thread PixelMuncher
I've setup a simple UI w/a textScrollBox so I can keep a list of my scripts and reload any of them by clicking. But the 'import' and 'reload' statements don't like that idea - they need a module. Can anyone help? def reloadScript(): # Query textScrollList for selected script: selectedScrip

[Maya-Python] Re: Syntax Coloring in Eclipse

2011-01-23 Thread PixelMuncher
I've already followed the instructions in "Making Eclipse Soar" (although I didn't add Perforce nor the PyQT stuff). Xtext looks too complicated. I also found the Colorer-take5 library at http://colorer.sourceforge.net/. I contacted Igor Russkih, the author, who told me it could be used to accompli

[Maya-Python] Syntax Coloring in Eclipse

2011-01-21 Thread PixelMuncher
I switched from jEdit to Eclipse, which is proving a good move. Is there a way to color Maya commands? Thanks. -- http://groups.google.com/group/python_inside_maya

[Maya-Python] Re: Regarding the creation of windows using either Pymel or Python

2011-01-12 Thread PixelMuncher
a class so I figured I'll give > it a try since my next step is to learn class. > Thanks > > > > On Wed, Jan 12, 2011 at 2:28 PM, PixelMuncher wrote: > > Look at "By Category" section of the Python section of the Maya > > manual. > > Most if not al

[Maya-Python] Re: Help assigning button cmd args in loop

2011-01-12 Thread PixelMuncher
Ofer The asterisks were a problem, but I also had to change the call command to include more than 1 arg: def __call__(self, *args): Matt: I've not encountered 'partial' before. It also worked. Is that similar to a callback? Thanks again for all the help. -- http://groups.google.com/group/

[Maya-Python] Re: Regarding the creation of windows using either Pymel or Python

2011-01-12 Thread PixelMuncher
Look at "By Category" section of the Python section of the Maya manual. Most if not all of the commands include examples which include creating a window. If your as typeA as I am, you can copy the code to the script editor, execute, then screen capture the resulting window and setup a reference doc

[Maya-Python] Re: Help assigning button cmd args in loop

2011-01-11 Thread PixelMuncher
t; 90),at=fullName,cat=(1, 'left', 10)) >                        cmds.button(l='Sel',w=20, command = *Callback(selectMe, > fullName)* ) > > - Oferwww.mrbroken.com > > On Tue, Jan 11, 2011 at 7:55 PM, PixelMuncher wrote: > > and this is the command I'm trying to assign to the buttons: > > def selectMe(who): > >    print 'selectMe:',who > >    cmds.select (who) > > > -- > >http://groups.google.com/group/python_inside_maya > > -- http://groups.google.com/group/python_inside_maya

[Maya-Python] Re: Help assigning button cmd args in loop

2011-01-11 Thread PixelMuncher
t; 90),at=fullName,cat=(1, 'left', 10)) >                        cmds.button(l='Sel',w=20, command = *Callback(selectMe, > fullName)* ) > > - Oferwww.mrbroken.com > > On Tue, Jan 11, 2011 at 7:55 PM, PixelMuncher wrote: > > and this is the command I'm trying to assign to the buttons: > > def selectMe(who): > >    print 'selectMe:',who > >    cmds.select (who) > > > -- > >http://groups.google.com/group/python_inside_maya > > -- http://groups.google.com/group/python_inside_maya

[Maya-Python] Re: Help assigning button cmd args in loop

2011-01-11 Thread PixelMuncher
27;,w=20, command = lambda x, y = fullName:selectMe(y) ) > > assign your value to an argument of the lambda > > On Tue, Jan 11, 2011 at 9:55 AM, PixelMuncher wrote: > > and this is the command I'm trying to assign to the buttons: > > def selectMe(who): > >    

[Maya-Python] Re: Help assigning button cmd args in loop

2011-01-11 Thread PixelMuncher
27;,w=20, command = lambda x, y = fullName:selectMe(y) ) > > assign your value to an argument of the lambda > > On Tue, Jan 11, 2011 at 9:55 AM, PixelMuncher wrote: > > and this is the command I'm trying to assign to the buttons: > > def selectMe(who): > >    

[Maya-Python] Re: Help assigning button cmd args in loop

2011-01-11 Thread PixelMuncher
and this is the command I'm trying to assign to the buttons: def selectMe(who): print 'selectMe:',who cmds.select (who) -- http://groups.google.com/group/python_inside_maya

[Maya-Python] Help assigning button cmd args in loop

2011-01-11 Thread PixelMuncher
Hi all: I know this has been covered b4, but I'm still having trouble with it. I have a UI which loads user-defined attrs (sliders) into an interface. These attrs are drivers for SDKs, so I have buttons to select the attrs so I can update the driven keys. I have a button to clear the panel (delet

[Maya-Python] Re: Python Error

2011-01-07 Thread PixelMuncher
User error. I modified the scene file which then led to an error when calling Pickle - I think I was sending it data that had been removed. Thanks. On Jan 7, 9:45 am, Chad Dombrova wrote: > can you send all the code that causing the error? > > On Jan 7, 2011, at 6:37 AM, PixelMunc

[Maya-Python] Python Error

2011-01-07 Thread PixelMuncher
Hi all: I receive this error when I attempt to run a pymel script: # Error: TypeError: __init__() takes at most 2 arguments (4 given) # I've been working on this script for months and have never encountered this error before (at least I didn't notice it). When I run some of my older versions, I get

[Maya-Python] Re: jedit stopped parsing python scripts

2010-10-22 Thread PixelMuncher
I found the problem - I needed to have the ctags sidekick as the active parser. -- http://groups.google.com/group/python_inside_maya

[Maya-Python] jedit stopped parsing python scripts

2010-10-22 Thread PixelMuncher
For some reason, the jEdit Sidekick plugin has stopped parsing my python scripts. For my Python Path in the Jython plugin, I have been using: C:\Program Files\Autodesk\Composite 2011\program which has been working fine until yesterday. I've also tried: C:\Program Files\Autodesk\Composite 2011 Subsc

[Maya-Python] Re: Can't paste from jEdit to script editor

2010-08-10 Thread PixelMuncher
The solution to this is to use clipmate, which can be set to convert the clipboard to plain text. http://www.thornsoft.com/index.htm On Jul 23, 1:30 pm, Seth Lippman wrote: > On Thu, Jul 22, 2010 at 7:37 AM, PixelMuncher wrote: > > Now that Maxya has taken a long/perhaps permanent ha

[Maya-Python] Re: Display Python Docs inside jEdit?

2010-08-09 Thread PixelMuncher
the command name wrong it fails, it just load the html file into > >> infoViewer. Also if you have a command name selected > >> in the script an run the macro it automatically uses that word as the > >> command input. > > >> Hope it helps and works. It does for me. &g

[Maya-Python] Re: Display Python Docs inside jEdit?

2010-07-26 Thread PixelMuncher
Thanks Shaun: I have the jython interpreter working, but I get an error when I try to execute the script: Traceback (innermost last): File "C:\Documents and Settings\Administrator\.jedit\macros \MayaHelp.py", line 3, in ? ImportError: no module named webbrowser I've also tried: from org.gjt.sp.

[Maya-Python] Can't paste from jEdit to script editor

2010-07-22 Thread PixelMuncher
Now that Maxya has taken a long/perhaps permanent haitus, I'm checking out jEdit. When I copy text from jEdit, it won't paste into the Script Editor, but it will paste into another text editor (EditPlus). I can then copy it from EditPlus to the SE. Anyone know if there is a fix? Thanks. -- http:/

[Maya-Python] Re: Display Python Docs inside jEdit?

2010-07-22 Thread PixelMuncher
Thanks Shaun: I haven't done any python programming outside of Maya, could I ask for the real code to pull this off? Also, I prefer to display the results in the infoViewer. I keep the Maya Help/Commands open in a browser, but I find the quick access to individual commands very helpful. -- http:

[Maya-Python] Display Python Docs inside jEdit?

2010-07-20 Thread PixelMuncher
Does anyone know how to get jEdit to display Maya Python Docs? I'm using the jEdit Maya Editor Plugin w/Maya 2011. When I use the 'execute' command to send commands from jEdit to Maya, jEdit locks up (WinXP x64, JRE build 1.6.0_20-b02), but I realize that things have changed in 2011, so I can live

[Maya-Python] Re: Problem importing mel2py

2010-06-10 Thread PixelMuncher
No problem. I posted the issue. Thanks. -- http://groups.google.com/group/python_inside_maya

[Maya-Python] Re: Problem importing mel2py

2010-06-09 Thread PixelMuncher
Someone helped me on another forum. Here's a solution: import pymel.tools.mel2py as mel2py mel2py.mel2py('C:\Documents and Settings\Administrator\My Documents \maya\pixlScripts\pixl_addLites.mel') #Writing converted python script: c:\documents and settings \administrator\my documents\maya\pixlscri

[Maya-Python] Re: Problem importing mel2py

2010-06-09 Thread PixelMuncher
Someone helped me on another forum. Here's a solution: import pymel.tools.mel2py as mel2py mel2py.mel2py('C:\Documents and Settings\Administrator\My Documents \maya\pixlScripts\pixl_addLites.mel') #Writing converted python script: c:\documents and settings \administrator\my documents\maya\pixlscri

[Maya-Python] Re: Problem importing mel2py

2010-06-09 Thread PixelMuncher
Where do I find it in the docs? A search on 'mel2py' yields 3 results, but no instructions. A search on 'convert' yields several results, but I don't see instructions for converting from mel to PyMEL. -- http://groups.google.com/group/python_inside_maya

[Maya-Python] Re: Problem importing mel2py

2010-06-09 Thread PixelMuncher
Thanks Chad, but still not quite right: import pymel.tools.mel2py as mel2py # WARNING: No t_error rule is defined # WARNING: Token 'COMMENT_BLOCK' defined, but not used # WARNING: Token 'COMMENT' defined, but not used # WARNING: There are 2 unused tokens # WARNING: no p_error() function is defined

[Maya-Python] Problem importing mel2py

2010-06-09 Thread PixelMuncher
I get errors when I attempt to import mel2py: from pymel.mel2py import * # Error: ImportError: file line 1: No module named mel2py # import pymel.mel2py # Error: ImportError: file line 1: No module named mel2py # import pymel.mel2py as mel2py # Error: ImportError: file line 1: No module named m

[Maya-Python] Re: Pymel Import Question

2010-06-08 Thread PixelMuncher
Thanks. -- http://groups.google.com/group/python_inside_maya

[Maya-Python] Re: PyMel Button.getCommand() returns empty string if command isn't a string

2010-06-08 Thread PixelMuncher
Excuse me for being a bit off topic, but I was testing this code and noticed: Button() generated a 'not defined' error, but ui.Button() and button() both work correctly. I'm curious about the difference between upper and lowercase versions of these commands and how you import the ui module to avoi

[Maya-Python] Pymel Import Question

2010-06-08 Thread PixelMuncher
With the exception of needing to preface all PyMel Cmds w/'pm.', are these equivalent? import pymel.core as pm & from pymel.core import * If so, is one approach preferred over the other? I see an advantage in being able to identify all the PyMEL commands in a script. Thanks. -- http://groups.go

[Maya-Python] Re: Items lose PyMEL attribute addressability

2010-05-13 Thread PixelMuncher
Thanks again Paul: I didn't know the mechanism of print(). This led to some confusion in figuring out how the code works. I appreciate your time in helping me get this straightened out. No more questions your honor... -- http://groups.google.com/group/python_inside_maya

[Maya-Python] Re: Items lose PyMEL attribute addressability

2010-05-13 Thread PixelMuncher
>> When you print something, you always get the str version - ie, > > print something > > is essentially the same as > > print str(something) > Paul: Thanks for the explanation of the 2 representations - I like to try to understand what's going on under the hood when I do something. I have been be

[Maya-Python] Re: Items lose PyMEL attribute addressability

2010-05-13 Thread PixelMuncher
Using Amorano's code, I was able to finish my joint weight locking tool with PyMEL code. For me, the biggest lesson here has been referencing objects as strings. What I still find confusing is: print tmpJnts [nt.Joint(u'joint1'), nt.Joint(u'joint2'), nt.Joint(u'joint3'), nt.Joint(u'joint4'), nt.J

[Maya-Python] Re: Items lose PyMEL attribute addressability

2010-05-12 Thread PixelMuncher
Thanks for the help guys. After a couple more hours exploring this, I've tried everything I can think of, but I'm still not getting it. Probably missing some small thing: tmpJnts = ls (sl = 1) numJnts = len(tmpJnts) print tmpJnts [nt.Joint(u'joint1'), nt.Joint(u'joint2'), nt.Joint(u'joint3'), nt.

[Maya-Python] Items lose PyMEL attribute addressability

2010-05-11 Thread PixelMuncher
I'm working on a joint locking tool for weight painting. It includes a UI which permits the user to type the names of the joints into a textfield or to create a list from a selection via a button. If a list is created via a button, I update the text field to list the selected joints. This allow th

[Maya-Python] Re: Format PyMEL Output to ascii?

2010-05-11 Thread PixelMuncher
I got it: tmpJnts = ls (sl = 1) print tmpJnts[1].name() for jnt in tmpJnts: print jnt.name() On May 11, 4:29 pm, PixelMuncher wrote: > Hi all: > I'm writing a joint locking script for weight painting. > > If I use maya.cmds to select assign the joints: > tmpJnts2Unlock = cm

[Maya-Python] Format PyMEL Output to ascii?

2010-05-11 Thread PixelMuncher
Hi all: I'm writing a joint locking script for weight painting. If I use maya.cmds to select assign the joints: tmpJnts2Unlock = cmds.ls (sl = 1) and then print w/this print (jnt.encode("ascii","ignore")+" is unlocked.") I get: joint1 is unlocked. joint2 is unlocked. joint3 is unlocked. However i

[Maya-Python] Re: usage for "error" and "warning"?

2010-05-07 Thread PixelMuncher
Thanks much Paul: raise ValueError was what I was looking for. displayWarning and displayError are available when I just use from pymel.core import * On May 6, 7:58 pm, Paul Molodowitch wrote: > Pymel doesn't provide an error or warning function because autodesk didn't > provide a maya.cmds wrap

[Maya-Python] usage for "error" and "warning"?

2010-05-06 Thread PixelMuncher
Hi All: Maya throws an error when I try to use "error" and "warning" from pymel in the root namespace: warning ("A Warning") # Error: NameError: file line 1: name 'warning' is not defined # error ("This is an error") # Error: NameError: file line 1: name 'error' is not defined # When called fr

[Maya-Python] Re: Pymel Install Question

2010-05-06 Thread PixelMuncher
Yes too much thinking, its a problem ;) Thanks again for the help. On May 6, 10:49 am, Chad Dombrova wrote: > On May 5, 2010, at 10:33 PM, PixelMuncher wrote: > > >> i'm curious what would make you think that it would not since that's > >> what the System Env i

[Maya-Python] Re: Script Editor - incredible

2010-05-06 Thread PixelMuncher
pt to pymel and executed, all the mel procs were still resident in memory. There is some work involved in finishing up the translation, but it still saves a hill of a lot of work. On May 6, 9:16 am, PixelMuncher wrote: > Until now, I've been spending hours translating my (limited) scriptin

[Maya-Python] Script Editor - incredible

2010-05-06 Thread PixelMuncher
Until now, I've been spending hours translating my (limited) scripting skills to python one command at a time. I installed and tested the pymelScrollFieldReporter. I used what for me is a fairly complicated script w/windows, lists, and RMB functions. It was translated flawlessly, which is incred

[Maya-Python] Re: Pymel Install Question

2010-05-05 Thread PixelMuncher
> i'm curious what would make you think that it would not since that's > what the System Env installation instructions say to do? Thanks again Chad: Got it working in both versions, using Maya.env to point the way. That was easy. The source of my uncertainty about setting the 2011 pymel dir is t

[Maya-Python] Re: Pymel Install Question

2010-05-05 Thread PixelMuncher
nstalling for > 2010 won't affect 2011 at all.  when using the manual install method it is > actually possible to setup every version of maya to look at a single pymel > install, but that is entirely up to you. > > -chad > > > > On Wed, May 5, 2010 at 3:58 PM, PixelMunch

[Maya-Python] Re: Pymel Install Question

2010-05-05 Thread PixelMuncher
Josh: Hide zero columns doesn't work in the CE. The RMB Marking Menu for the Paint Weights Tool no longer has an option for selecting the joint under the mouse. Chad: If I use the easy install, do I need to modify anything in my 2011 setup? Or should I use manual install for 2010? Thanks. On May

[Maya-Python] Re: Pymel Install Question

2010-05-05 Thread PixelMuncher
Edit: 2010 launches when I use the following path, but when I attempt to import, I get an error. PYTHONPATH = C:\Program Files\Autodesk\Maya2011\Python\Lib\DLLs; C: \Program Files\Autodesk\Maya2011\Python\Lib; C:\Program Files\Autodesk \Maya2011\Python\Lib\site-packages; from pymel.core import * #

[Maya-Python] Pymel Install Question

2010-05-05 Thread PixelMuncher
I've started using pyMel w/2011, but I have found 2011 to be too buggy for weight painting, so I'm going back to 2010 for that task. I'd like to get pyMel working in 2010 - is it possible to use the pyMel install in the 2011 dir? I've made several attempts at adding PYTHONPATH to my Maya.env, but

[Maya-Python] Re: THANKS A LOT! + Error: global name 'window' is not defined

2010-05-04 Thread PixelMuncher
A bit more research led to the source of the problem: from pymel.core import * -- http://groups.google.com/group/python_inside_maya

[Maya-Python] THANKS A LOT! + Error: global name 'window' is not defined

2010-05-04 Thread PixelMuncher
Hi all: First off, I'd like to send a huge thanks to Chad and the pyMel team. I started using pyMel after installing 2011 - what an incredible effort you all have put forth - thanks so much. Even the documentation is considerately written - I'm not a professional coder, so I never quite understood

[Maya-Python] Re: PyMEL included with Maya 2011

2010-03-16 Thread PixelMuncher
Thanks a lot Chad: I'll start working on PyMel next time I'm coding. Is there a recommended Editor w/PyMel syntax hiliting? -- http://groups.google.com/group/python_inside_maya

[Maya-Python] Re: PyMEL included with Maya 2011

2010-03-13 Thread PixelMuncher
I'm also one of the fence-sitters. In the meantime, I've been learning Python. This might be a stupid question, but what advantages does Pymel offer over Python? Thanks and Congrats. -- http://groups.google.com/group/python_inside_maya

[Maya-Python] hide selection not updating from Python

2009-12-17 Thread PixelMuncher
Hi all: I'm writing .py code to speed up isolateSelect. Almost everything is working. BUT, when I invert the selected faces and then toggle isolate select w/Python, Maya hide the newly selected faces. I can toggle the hiding of selected faces w/this: def pixl_isolateSelected(): curPanel