[Maya-Python] how to use ToolContexts in maya?

2016-12-14 Thread Mahmoodreza Aarabi
Hello Friends I have a problem here to call ToolContexts in maya. for example there is a moveTool folder in C:\Program Files\Autodesk\Maya2016\devkit\plug-ins\moveTool, i build it for maya in windows mll and load its plugin to maya, but i don’t know how should i call it. in its docs has

Re: [Maya-Python] Re: Trying to make a dict in python from hierarchy

2016-12-14 Thread river bell
hey Alok Thanks I didn't see your second post in my mail. But I saw it in google groups.Its maybe what I was looking for. will go through it. Thank you so much again. Warm Regards to you. -- You received this message because you are subscribed to the Google Groups "Python Programming for

Re: [Maya-Python] Re: Trying to make a dict in python from hierarchy

2016-12-14 Thread river bell
Hi Alok , Thank you for taking interest and helping me. Yeah you are right I am going to use it to check if something has changed in two data sets.I am also going to store vertex count along side each obj name. I intend to store this in the scene file with fileInfo command. I am also going to add

[Maya-Python] Weta Hiring devs in New Zealand and Los Angeles

2016-12-14 Thread Justin Israel
Hey Everyone, Just wanted to mention that Weta is hiring for devs in both New Zealand and in Los Angeles: http://www.wetafx.co.nz/jobs Justin -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this

Re: [Maya-Python] Re: Trying to make a dict in python from hierarchy

2016-12-14 Thread Alok Gandhi
@river: Here's a gist that you might found helpful: https://gist.github.com/hrldcpr/2012250 On Thu, Dec 15, 2016 at 6:19 AM, Justin Israel wrote: > Couple questions... > > Is it a problem to use a defaultdict vs a stdlib dict? The benefit is just > simplifying the need

Re: [Maya-Python] Re: Trying to make a dict in python from hierarchy

2016-12-14 Thread Justin Israel
Couple questions... Is it a problem to use a defaultdict vs a stdlib dict? The benefit is just simplifying the need for checking if a key exists, so that you can freely access it and have it create a child data structure as needed. But in that example they are using files as leaf items and

Re: [Maya-Python] adding the difference between two meshes onto a third with api

2016-12-14 Thread Nicolas Chaverou
Hey On Wed, Dec 14, 2016 at 9:57 PM, wrote: > hello, > > i got this concept working fine with python cmds. I am trying to see if i > can get it working with api. So far with the thanks to Justin Israel, i got > my code to this stage: > >

[Maya-Python] adding the difference between two meshes onto a third with api

2016-12-14 Thread sam
hello, i got this concept working fine with python cmds. I am trying to see if i can get it working with api. So far with the thanks to Justin Israel, i got my code to this stage: http://pastebin.ubuntu.com/23630582/ basically imagine there are 3 meshes: 1) a female neutral mesh named

Re: [Maya-Python] optimizing batch rendering (avoiding scene reload / getting rendering state / on-the-fly frame deployment)

2016-12-14 Thread David Moulder
I'm no rendering guru, but wouldn't vray standalone be the correct answer? Just one thing I'm not clear on with your approach. Are you rendering single frames from a bat file? Are you not better off clumping the renders into buckets based on a ratio of render nodes to frames? This would then

Re: [Maya-Python] optimizing batch rendering (avoiding scene reload / getting rendering state / on-the-fly frame deployment)

2016-12-14 Thread Enrico Losavio
Oh hey! Thanks, I've just come across this website as well. That finally makes it render!! yay! Mel sintax was the answer all along! It's good to have this documentation. Although the lack of an official documentation leaves it still wrapped in a mystery. It's funny how they say that most of

Re: [Maya-Python] optimizing batch rendering (avoiding scene reload / getting rendering state / on-the-fly frame deployment)

2016-12-14 Thread David Moulder
Hi Enrico, I've never used Vray but just found this web site https://github.com/BigRoy/mayaVrayCommandDocs/wiki/vrend >From the looks of it you may need to associate the default render layer. Hope this helps. import maya.cmds as mc currentLayer = mc.editRenderLayerGlobals(q=1,

Re: [Maya-Python] optimizing batch rendering (avoiding scene reload / getting rendering state / on-the-fly frame deployment)

2016-12-14 Thread Enrico Losavio
Hi David, thanks for your suggestion. I've just added your code, but yet nothing changed... I've also added this bit of code to set only one camera renderable (I had it in another test script, but forgot to add it to the snippet in the previous post). import maya.standalone

Re: [Maya-Python] optimizing batch rendering (avoiding scene reload / getting rendering state / on-the-fly frame deployment)

2016-12-14 Thread David Moulder
Hi, Try this import maya.cmds as cmds import maya.mel as mel mel.eval("""setCurrentRenderer "arnold" """) Cheers On Wed, Dec 14, 2016 at 12:18 PM, Enrico Losavio wrote: > Hi everyone, > > I am struggling to optimize a batch rendering script of mine. > Basically I've

Re: [Maya-Python] subtracting coordinate values from seperate lists python API

2016-12-14 Thread sam
Thanks Justin, I did read this page. But i still find it hard to make sense of how things are worded sometimes. Ill try and learn from this example thanks, Sam -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To

[Maya-Python] optimizing batch rendering (avoiding scene reload / getting rendering state / on-the-fly frame deployment)

2016-12-14 Thread Enrico Losavio
Hi everyone, I am struggling to optimize a batch rendering script of mine. Basically I've wrote a script that assigns a certain number of frames to each computer in the studio, and then writes a batch render (bat) file per pc. In case of big scenes, the rendering is automatically split into

[Maya-Python] Re: Trying to make a dict in python from hierarchy

2016-12-14 Thread river bell
edit: I almost had a solution here : http://stackoverflow.com/questions/8484943/construct-a-tree-from-list-os-file-paths-python-performance-dependent?noredirect=1=1 But it is using default dict rather than a normal nested dictionary. And i am not able to convert this nested defaultdict to a

[Maya-Python] Trying to make a dict in python from hierarchy

2016-12-14 Thread river bell
hi, I have a string , which is basically a list of maya objects in a scene with their full path.Something like this ch_mojo_Master ch_mojo_Master|EyeBrow_grp ch_mojo_Master|EyeBrow_grp|L_eyeblow_geo ch_mojo_Master|EyeBrow_grp|L_eyeblow_geo|L_eyeblow_geoShape