Re: [Maya-Python] PySide QThread error on cmds.ls(l=True) where True isn't bool

2014-04-03 Thread Marcus Ottosson
Hey Asi, good to see you back in these threads. :) Maya, like Qt, isn't a big fan of having things run outside of their main threads. You can circumvent the issue by calling upon the overly descriptive command maya.utils.executeInMainThreadWithResult()which will queue the event in the main thread,

[Maya-Python] PySide QThread error on cmds.ls(l=True) where True isn't bool

2014-04-03 Thread Asi Sudai
Hi gang, I'm getting a strange error in a very simple query of cmds.ls( type= "transform", long=True ) running inside a PySide QThread. I extracted the issue into a basic example that reproduce the issue: https://gist.github.com/asisudai/9967431 The error is ( it actually prints out upside down

Re: [Maya-Python] Render Settings Window

2014-04-03 Thread Chi Ngai Lai
Appreciate your help, it's awesome, man! Cheers, Parker -- 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...@g

Re: [Maya-Python] MEL Autocompletion for Sublime and MayaSublime

2014-04-03 Thread Fredrik Averpil
Awesome! This definitively should get merged with the repo! // F -- 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+uns

Re: [Maya-Python] MEL Autocompletion for Sublime and MayaSublime

2014-04-03 Thread Justin Israel
Cool. Once you have something you feel would be good across multiple recent versions of Maya, feel free to submit a merge request on the repo: https://github.com/justinfx/MayaSublime Thanks! On Fri, Apr 4, 2014 at 9:15 AM, Jan: wrote: > Ah yes good point. I'll modify the script to only take gl

Re: [Maya-Python] MEL Autocompletion for Sublime and MayaSublime

2014-04-03 Thread Jan:
Ah yes good point. I'll modify the script to only take global procs. Also ill add an argument to just do the commands that maya returns with its help function. This should create a file that resembles the commands that are listed in the documentation. Cheers for the feedback! Jan. On 3 Apr 2014 2

Re: [Maya-Python] MEL Autocompletion for Sublime and MayaSublime

2014-04-03 Thread Justin Israel
Hey Jan, Thanks for working on that. I would be inclined to add the completion file if it only contained the commands API. It appears there may be a lot of extra cruft in the way you have generated it so far. Are you grabbing all procs, regardless of whether they are global or not? -- justin O

Re: [Maya-Python] MEL Autocompletion for Sublime and MayaSublime

2014-04-03 Thread Jan:
note* by default this file should live here: C:\Users\\AppData\Roaming\Sublime Text 3\Packages\MayaSublime 2014-04-03 20:12 GMT+01:00 Jan: : > Hi All, > > Justin Israel made an awesome extension for the Sublime Text editor called > MayaSublime. > https://github.com/justinfx/MayaSublime > > But

Re: [Maya-Python] Render Settings Window

2014-04-03 Thread Marcin Majewski
These attributes can be found in defaultRenderGlobals node attributes. Script is only used to set this attributes. You can list node attribures using listAttr command. Type listAttr defautRenderGlobals and you will see all availabe attributes. 2014-04-03 16:14 GMT+02:00 Chi Ngai Lai : > Hi Marci

Re: [Maya-Python] Render Settings Window

2014-04-03 Thread Chi Ngai Lai
Hi Marcin, I appreciate your helpful tips. I was wondering, are there all the attributes inside the Render Settings Panel could be found in this createMayaSoftwareCommonGlobalsTab.mel ? Once again thank you for your help. On Thursday, April 3, 2014 7:15:25 PM UTC+8, marcin wrote: > > Enab

[Maya-Python] Re: Importing Massive Simulation to Maya

2014-04-03 Thread Sumit Neupane
> > Thank you so much. I will definitely have more look into the plugin but I > am just starting with maya python api so I doubt that I will be able to > spot the bug. I will definitely do what you suggested.This plugin spits out > 2 errors, 1 is script editor which looks like > > msvSimImport

[Maya-Python] Re: Importing Massive Simulation to Maya

2014-04-03 Thread Sumit Neupane
Thank you so much. I will definitely have more look into the plugin but I am just starting with maya python api so I doubt that I will be able to spot the bug. I will definitely do what you suggested.This plugin spits out 2 errors, 1 is script editor which looks like msvSimImport -masFile "D:/t

Re: [Maya-Python] Render Settings Window

2014-04-03 Thread Marcin Majewski
Enable Color Management is controlled by createMayaSoftwareCommonGlobalsTab.mel. You can check this with whatIs mel command. If you enable color management checkbox you will see "changeColorProfileEnabled" in script editor. In script mentioned above you can find attributes that need to be changed t

Re: [Maya-Python] Render Settings Window

2014-04-03 Thread Chi Ngai Lai
For example, "Enable Color Management" checkbox doesn't be reflected correctly in the script editor while "echo all commands" is activated, so anyone could help? Thank you so much. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Ma

Re: [Maya-Python] Render Settings Window

2014-04-03 Thread Chi Ngai Lai
I tried in this way, but most of the actions or the "commands" shown in the script editor are not the exact ones you could use while scripting. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this gro

[Maya-Python] Re: Importing Massive Simulation to Maya

2014-04-03 Thread finale . ad1492
the massive importer you mentioned is a good start. as I recall, a couple of bug fixings can make it work. you can also search in github, I think there are some interesting projects about bringing massive simulated results back into maya. but be careful, those projects might ceased because there

Re: [Maya-Python] Render Settings Window

2014-04-03 Thread Ricardo Viana
Leave script editor open with echo all commands and see what it does when you change the values. It spits out the commands it is performing. At least that's how I managed to script vray render settings. On Thursday, April 3, 2014, Chi Ngai Lai wrote: > Hi, > > May I know how to use Maya Python

[Maya-Python] Render Settings Window

2014-04-03 Thread Chi Ngai Lai
Hi, May I know how to use Maya Python to access/modify All the tabs, options, checkboxes (ie, Enable Color Management), and attributes inside the Maya Render Settings Window, it seems quite tricky to do this, I hope you could help me or share some learning resources for these stuffs, thank you

Re: [Maya-Python] Select object to import

2014-04-03 Thread Tuan Nguyen
Can you go for more detail, or give me a sample please? I'm not good with network stuff :( On Thu, Apr 3, 2014 at 3:49 PM, Justin Israel wrote: > Maya standalone does take a second to startup. But ya you could open a > socket or use a commandPort to keep pushing the long running process. > On Ap

Re: [Maya-Python] Select object to import

2014-04-03 Thread Justin Israel
Maya standalone does take a second to startup. But ya you could open a socket or use a commandPort to keep pushing the long running process. On Apr 3, 2014 9:27 PM, "Tuan Nguyen" wrote: > I have a few questions about mayapy > It took long times to import and run maya.standalone package, can i kee

Re: [Maya-Python] Select object to import

2014-04-03 Thread Tuan Nguyen
I have a few questions about mayapy It took long times to import and run maya.standalone package, can i keep the mayapy running in background, and control it through python or mel? I only use it to run a batch of code, using cmd mayapy script.py On Thu, Apr 3, 2014 at 3:44 AM, Marcus Ottosson wro