Re: [Maya-Python] Maya 2024 pyMel ;(

2023-04-12 Thread Yury Nedelin
Thanks for the update Chad. Yury On Wed, Apr 12, 2023 at 9:21 AM Chad Dombrova wrote: > Hi all, > PyMEL 1.3.0 has been released with support for 2023, and 1.4.0b1 has been > released with support for 2024. To install the beta for 2024 pip install > with --pre flag. > > PyMEL is definitely

Re: [Maya-Python] Re: some Mel toughts

2017-08-19 Thread yury nedelin
I am curious , why not python ? Yury On Sat, Aug 19, 2017 at 2:46 PM, Cedric Bazillou wrote: > Like the other people said its a scripting language, and your variable are > strongly typed ( so what is the point of whining :its normal to be confused > when to start using

Re: [Maya-Python] Jenkins P4 changelist help

2017-08-14 Thread yury nedelin
Can you start Maya from command prompt manually, without Jenkins? If not what is the error you get , if you get one? On Aug 14, 2017 8:52 AM, "Benjam901" wrote: > I found the file in question *"C:/Program Files >

Re: [Maya-Python] Jenkins P4 changelist help

2017-08-11 Thread yury nedelin
P4 will create an xml file with full sync log for each build. Look for it in Jenkins root. I will send you exact location later after I get in front of a computer if you can not find it. On Aug 11, 2017 5:31 AM, "Benjam901" wrote: Hello all, I am having trouble with

Re: [Maya-Python] bakeresults in Python is super slow

2016-12-25 Thread yury nedelin
Consider not using that command at all, unless you need all of it full functionality. If you simply need the per frame position and rotation just query it with something like xform() or get() and store it in data for further use. This function is handy but have always been slow and when I was

Re: [Maya-Python] Re: What is the correct / most efficient way for adding tools to Maya?

2016-10-01 Thread yury nedelin
I agree with Eric. It's an easy way to it. On Sep 30, 2016 3:10 PM, "Eric Thivierge" wrote: > Sorry can't reply more than to say to look into Modules for packaging sets > of tools. > > > Eric Thivierge > http://www.ethivierge.com

Re: [Maya-Python] pep 8 nameing convention for packages and modules

2016-09-24 Thread yury nedelin
You could use Build instead of Skeleton. This would make sense since you already have skeleton in the rbskeleton, then you will have rbs.Build() It would also work well with other functions like rbs.Destroy() On Sep 24, 2016 12:20 PM, "Rudi Hammad" wrote: > Hi, > so I guess

Re: [Maya-Python] I am trying to get a vert by position is there a way to do this in maya?

2016-09-22 Thread yury nedelin
As far as I know only components know where they are in world space. I doubt there is anything like a table you can just look up quickly. You might come up with some algorithms that will reduce number of verts needed for test by maybe eliminating some objects first based on the distance. I think

Re: [Maya-Python] I am trying to get a vert by position is there a way to do this in maya?

2016-09-22 Thread yury nedelin
Can you use objects names ? On Sep 22, 2016 4:00 PM, "I73" wrote: > Here is my problem, I have a list of verts and they are very close to > another objects verts, I would like to be able to use (object A) list of > verts to grab (object B) list of verts I don't want to

Re: [Maya-Python] Optimise this: Hierarchy from String

2016-09-16 Thread yury nedelin
Is performance something you are concerned with for this process? Yury On Sep 16, 2016 6:16 PM, "Justin Israel" wrote: > > > On Sat, Sep 17, 2016 at 5:27 AM Alok Gandhi > wrote: > >> >> Coming back to some of the points that Ian raised: >>

Re: [Maya-Python] Re: print to show up right of the command line

2016-07-28 Thread yury nedelin
Do you mean when you run print("something") in Python in script editor in maya, it does not print the result in the script editor but only in command line output? Could you explain in more detail what you are doing. Yury On Jul 28, 2016 12:33 PM, wrote: > On

Re: [Maya-Python] args & kwargs

2016-06-01 Thread yury nedelin
Look at this site http://www.saltycrane.com/blog/2008/01/how-to-use-args-and-kwargs-in-python/ I would say looking at more examples will help. The way I understand it - if function accepts *args then you can pass any number of values(attributes, parameters) to it and then inside the function

Re: [Maya-Python] Listen on attribute change

2016-04-29 Thread yury nedelin
I was just wondering how will this method compare to build- in scriptJob. On Apr 29, 2016 4:38 AM, "Justin Israel" <justinisr...@gmail.com> wrote: > > > On Fri, 29 Apr 2016 3:39 PM yury nedelin <ynede...@gmail.com> wrote: > >> Is this better then a scr

Re: [Maya-Python] pyside UI and raising Exceptions into command line output

2016-02-02 Thread yury nedelin
maya 2015 windows 8 it seems as if /n is placed after the error statement when pyside UI is involved. I will make a little example later today. On Mon, Feb 1, 2016 at 12:22 PM, Marcus Ottosson wrote: > Could you provide a reproducible example? What platform? What

Re: [Maya-Python] I need development and publishing workflow advice for my scripts

2015-12-19 Thread yury nedelin
Just curious, why not just have all of your Maya scripts in the location that Maya can see? If you are working with python and you really like separation between temp work and production ready work namespaces will help. Having multiple environments for launching Maya as Justin suggested is a

Re: [Maya-Python] some # comments break my code!! // Error: Line 1.11113: Unterminated string.

2015-11-14 Thread yury nedelin
Post here exactly what you trying to run. On Nov 14, 2015 4:43 AM, "Rudi Hammad" wrote: > it is weird because I can excute le code with success one time or two > times. But after that it breaks. I have 2 errors: > > // Error: ...ta = >

Re: [Maya-Python] optimizing code, unusual results

2015-11-04 Thread yury nedelin
Try looking up python cprofiler. Yury On Nov 4, 2015 6:47 AM, wrote: > Hi, > > im trying to make my script as efficient as possible. I have placed all > these lines in my code to see how fast different sections are running and > then just focusing on those areas. > >

Re: [Maya-Python] script editor looses cursor after going to different software and coming back to Maya.

2015-10-16 Thread yury nedelin
ther that’s a problem or > not is too soon to tell, but I’ll leave the implementation for that to the > reader. > > Enjoy! > ​ > > On 15 October 2015 at 19:22, yury nedelin <ynede...@gmail.com> wrote: > >> Well for now I have a ghetto workflow to avoid the mouse. >> >>

Re: [Maya-Python] script editor looses cursor after going to different software and coming back to Maya.

2015-10-15 Thread yury nedelin
ectly, this is a preference and if I remember it >> isn't on by default. >> >> Preferences -> Interface -> Command Line: Hold Focus [x] >> >> Does checking this box solve your problem? >> >> Chris >> >> >> On Wed, Oct 14, 2015 at 10:09 AM,

Re: [Maya-Python] script editor looses cursor after going to different software and coming back to Maya.

2015-10-14 Thread yury nedelin
Justin, Thanks for replying, I will try this approach to put script editor in focus. There is an added issue of putting the command input section of the script editor in focus. Yury On Oct 14, 2015 12:51 AM, "Justin Israel" wrote: > I don't know much about this

Re: [Maya-Python] Command to run script ?

2015-09-13 Thread yury nedelin
are you trying to run mel script in python or just run it as it it in MEL ? Yury On Sun, Sep 13, 2015 at 11:32 PM, Christopher. wrote: > I have a MEL Maya script called craOffsetKeys; I can't find how to run the > script. I've searched within the script can't find

Re: [Maya-Python] Layer Editor With PyQT

2015-09-08 Thread yury nedelin
All LayerEditor.Mel updates take place after Maya is restarted. On Sep 8, 2015 10:15 AM, "Kurian O.S" wrote: > This works, but the issue is once if you source the layerEditor.mel then > we won't get any update on the wrapped one :( > > On Tue, Sep 8, 2015 at 9:58 AM, Kurian

Re: [Maya-Python] In QListView , QStandardItemModel, QStandartItem statusTip does not show up in the status line

2015-06-17 Thread yury nedelin
Thanks guys, Looks there is a nice solution, I will give it a try when I get into the office this morning. Yury On Wed, Jun 17, 2015 at 12:23 AM, Anthony Tan anthony@greenworm.net wrote: You and me both! I sort of glossed over it while I was testing, then decided to reimplement mousemove

Re: [Maya-Python] invisible object

2014-10-28 Thread yury nedelin
You could assign shader with 100% transparency ... yury On Tue, Oct 28, 2014 at 7:19 PM, maya2015 cgsemail2...@gmail.com wrote: Hello first my English is not good... sorry. How to get the picture below?(by python api) http://upload7.ir/imgs/2014-10/59396760183204776003.jpg -- You

Re: [Maya-Python] Re: Open Discussion of Pymel by a Pymel noob

2014-07-07 Thread yury nedelin
GeordieJust curious, do many guys at ILM using it? Yury On Mon, Jul 7, 2014 at 9:41 AM, Geordie Martinez geordiemarti...@gmail.com wrote: Getting back to Pymel. I love it. OOP is the way to go. the only way to go. I just hate that it has mel in the name. if and when there is ever a

Re: [Maya-Python] Re: Open Discussion of Pymel by a Pymel noob

2014-07-03 Thread yury nedelin
Pymel is object oriented. And that's a great python feature that is missing in Maya.cmds . Hamish makes a point about performance. It is true its slower then Mel but if you really want speed go with api for few times speed is important. Do not write a new ik solver with pymel but you probably will

Re: [Maya-Python] how to pass a list of floats to a scripted command?

2013-11-26 Thread yury nedelin
Thank you Justin, it works great, On Tue, Nov 26, 2013 at 2:45 AM, Justin Israel justinisr...@gmail.comwrote: Something like this? def doIt(self, args): util = OpenMaya.MScriptUtil() name = args.asString(0) util.createFromInt(1) ptr =

Re: [Maya-Python] Re: getElements from MFnSingleIndexedComponent

2013-11-05 Thread yury nedelin
Thank you Paul It works. Awesome! yury On Tue, Nov 5, 2013 at 7:20 AM, Paul Molodowitch elron...@gmail.com wrote: The relationship between MObjects + MFn function sets is one of the stranger features of the OpenMaya API, and can be hard to wrap your head around. Basically, the mobject

Re: [Maya-Python] maya layer color number to RGB?

2013-10-10 Thread yury nedelin
ahh here it is colorIndex -q 1 thank you On Thu, Oct 10, 2013 at 3:47 PM, ynedelin ynede...@gmail.com wrote: hey guys is there an easy way to tell RGB values of a preset maya color for example from an color override option? Let say color override 17 , what's the RGB? Thanks Yury

Re: [Maya-Python] rig performance

2013-04-28 Thread yury nedelin
Ravi, access to more documentation would great. Where can I see it? Yury On Apr 28, 2013 4:02 PM, Ravi Jagannadhan enr...@gmail.com wrote: Just following up on this. I took this discussion offline with Aevar, and sent him some documentation (which should now be a part of Maya 2014's

Re: [Maya-Python] Creating Skeleton with knowledge of joint Pos. and Rot.

2013-04-11 Thread Yury Nedelin
Is your data for world space per joint or local space? Do you know what this skeleton looks like in the default position? Also I am confused by the last sentence, you want to rotate the joint to 40,0,0 but keep its position at 0,0,0? Yury On Apr 11, 2013, at 8:12 PM, Mat umca...@gmail.com

Re: [Maya-Python] how to inherit transform class fropm pymel

2012-06-21 Thread yury nedelin
Thanks Paul I will look at these today Yury On Wed, Jun 20, 2012 at 7:09 PM, Paul Molodowitch elron...@gmail.comwrote: Hi Yury - what you're looking for is pymel virtual classes - there's an example here: https://raw.github.com/LumaPictures/pymel/master/examples/customClasses.py Or,

Re: [Maya-Python] Selectively export child members?

2012-04-25 Thread yury nedelin
You can unparent body, export control with head, then reparent body and unparent head and export again. On Apr 25, 2012 1:03 AM, Panupat Chongstitwattana panup...@gmail.com wrote: Is it possible to select a parent with multiple child, and then have Python export the parent with each separate

Re: [Maya-Python] logging and maya script editor

2011-12-06 Thread yury nedelin
Thanks Justin well my true issue is accumulation of log info every time I reload the script. I realize that I might have a totally wrong way of doing this but, let say I have this script called myScript.py #=== import logging logger = logging.getLogger('simple_example')

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

2011-10-26 Thread yury nedelin
Nice thanks jan Yury On Tue, Oct 25, 2011 at 1:13 PM, Jan: jan@gmail.com wrote: Hi Yury, I do not think there is mel syntax available for VS 2010 but here is an explanation for pymel. https://pytools.codeplex.com/discussions/276754 If it does not work give VS 2010 a restart. that

Re: [Maya-Python] xform at a particular frame/time

2011-09-09 Thread yury nedelin
Thanks Judd I did not realize I could get global matrix from the transform directly with getAttr. I will try it when I get in front of Maya. Right now total currentTime calls take over 50% of the time. Yury On Fri, Sep 9, 2011 at 7:37 PM, judd...@gmail.com wrote: Hey man, You can actually

Re: [Maya-Python] Re: unlocking referenced nodes

2010-05-17 Thread yury nedelin
thanks a lot for the tip I will look into these scripts. yury On Mon, May 17, 2010 at 12:51 PM, Mark Jackson mark...@gmail.com wrote: Actually there is a mel global that can over ride the default locking on a node type/attr basis. I've never run it but remember reading about it when we

Re: [Maya-Python] Re: unlocking referenced nodes

2010-05-17 Thread yury nedelin
yes that's exactly what I am doing this for, animation layers. yury On Mon, May 17, 2010 at 3:09 PM, Ofer Koren kor...@gmail.com wrote: Animation Layers might be useful here as well. - Ofer www.mrbroken.com On Mon, May 17, 2010 at 3:02 PM, yury nedelin ynede...@gmail.com wrote: I

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

2010-03-10 Thread yury nedelin
wow congrats, this is very cool. yury On Wed, Mar 10, 2010 at 11:10 PM, Chad Dombrova chad...@gmail.com wrote: Does that mean in future you just have to do a plain: from pymel.all import * and it will be there without actually installing anything ? Or will it be loaded by default ?

[Maya-Python] Re: userSetup.py location

2009-08-07 Thread yury nedelin
we have local userSetup run a global userSetupAll This way we can have local functions run together with functions that are global for every one. yury On Fri, Aug 7, 2009 at 7:44 AM, sberger sylvain.ber...@gmail.com wrote: Hi, I have this setup for Maya 2009 My user Pref are localed on

[Maya-Python] Re: list all skinned points to a joint

2009-03-18 Thread yury nedelin
Thanks guys, I will play with it tomorrow morning. Pymel looks nice. Yury On Tue, Mar 17, 2009 at 11:00 PM, Chadrik chad...@gmail.com wrote: as a demo of the new pymel, i rewrote this api snippet using pymel. here's the full file with both the api and pymel versions:

[Maya-Python] Re: list all skinned points to a joint

2009-03-18 Thread yury nedelin
yeah that's nice pymel ... I should meet with you guys on Sunday Yury On Wed, Mar 18, 2009 at 12:00 PM, IanJones i...@ambientdivide.com wrote: Alternative in pymel via api: from pymel import * skin = PyNode('skinCluster1') influnces = skin.getInfluence(q=True) vert_list, values =

[Maya-Python] is it instance ?

2009-03-12 Thread yury nedelin
hi this is not really python specific but what i a nice way to tell if object is an instance with mel/python? Yury --~--~-~--~~~---~--~~ http://groups.google.com/group/python_inside_maya -~--~~~~--~~--~--~---

[Maya-Python] Re: is it instance ?

2009-03-12 Thread yury nedelin
and that worked too. Got an example file you want to send me? I'm under your same NDA ;o) On Mar 12, 4:52 pm, yury nedelin ynede...@gmail.com wrote: right that's all good but here is were i am confused, so you have getShape[0] and 2 parents, let say sphere1 and sphere2 . Skin

[Maya-Python] Re: Production Practices

2009-03-11 Thread yury nedelin
1) Revision control or No? if yes, which? Alienbrain and Perforce, but soon Perforce only 2) Do developers work on live files (ie. files seen by general users) or in individual sandboxes? Trying to encourage working on live files as much as possible. 3) Do you use Unit tests? We enforce units

[Maya-Python] Re: Which python UI package to choose ?

2009-02-28 Thread yury nedelin
If you on 64 bit you might have problems finding python UI modules, we could not find one few month ago, but we are on maya 8.5 and using 2.4 python. Not sure if maya 9 has python UI modules that work 64 bit but it is somthing to consider. yury On Sat, Feb 28, 2009 at 12:56 PM, Mathew Berglund

[Maya-Python Club:1614] Re: Python Chat For Maya

2009-02-07 Thread yury nedelin
Kurian Thats awesome thanks cann't wait to give it try on Monday Yury On Sat, Feb 7, 2009 at 12:42 AM, Achayan kuria...@gmail.com wrote: Hi All I am not a pure python programmer , but its a try to do something with python This tool is not using any telnet or anything just python socket

[Maya-Python Club:1592] what is a good way to deal with None?

2009-02-06 Thread yury nedelin
let say mc.select(clear=1) print mc.ls(sl=1) None I have to check if its None or a list if I want to do a For loop anything else with the List Are there better ways than checking if None all the time ? Thanks Yury --~--~-~--~~~---~--~~ Yours, Maya-Python

[Maya-Python Club:1597] Re: what is a good way to deal with None?

2009-02-06 Thread yury nedelin
[0] == True {} == False {1:1} == True () == False (1) == True On Feb 6, 2:29 pm, chadrik chad...@gmail.com wrote: use pymel :) On Feb 6, 2009, at 1:25 PM, yury nedelin wrote: let say

[Maya-Python Club:1598] Re: what is a good way to deal with None?

2009-02-06 Thread yury nedelin
] == True {} == False {1:1} == True () == False (1) == True On Feb 6, 2:29 pm, chadrik chad...@gmail.com wrote: use pymel :) On Feb 6, 2009, at 1:25 PM, yury nedelin wrote: let say mc.select(clear

[Maya-Python Club:1539] Re: Maya Chat Messenger

2009-02-03 Thread yury nedelin
Too bad, let me know when you make the source available. I was looking forward editing it for our needs here. Our admin and tech directors do not like no source scripts. I was looking forward playing with it. Yury On Tue, Feb 3, 2009 at 5:49 PM, ChrisChia chrischi...@gmail.com wrote: cos