Re: [Maya-Python] Node tagging system

2018-03-29 Thread Mahmoodreza Aarabi
There is not enough information about your case can you explain your situation more clearly?! Because there are bunch of ways to do that On Thu, Mar 29, 2018 at 3:49 PM justin hidair wrote: > Is ‘ these ‘ nodes custom nodes from you or any node from maya ? if it’s > the

Re: [Maya-Python] QT designer - Mac/Window

2017-12-30 Thread Mahmoodreza Aarabi
Search Here: https://download.qt.io/archive/ ​ On Sat, Dec 30, 2017 at 3:08 PM, Marcus Ottosson wrote: > It’s there, and it’s free. > > You can also find it in your Maya directory, such as this on Windows. > > C:\Program Files\Autodesk\Maya2018\bin\designer.exe > ​ > >

Re: [Maya-Python] Creating a Basic GUI

2017-03-09 Thread Mahmoodreza Aarabi
Hey man You can use Mel or python or PySide in maya for creating GUI But if you mean you want idea about designing your GUI it is better to create some mock-ups on paper then create it with code Location and angle are vector Dimension is based on object you want to create Draw your sketches

[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] makeIdentity Won't Run Before Parent Command

2016-10-20 Thread Mahmoodreza Aarabi
Hey man For combining curve it is better to put all shapes of them inside one transform node. Before: [image: Inline image 1] After: [image: Inline image 2] On Thu, Oct 20, 2016 at 7:12 AM, Kevin C. Burke wrote: > > > Hello, > I'm trying to write a script for

[Maya-Python] How to get all paths inside maya file?

2016-10-08 Thread Mahmoodreza Aarabi
Hello Masters I want to get all file paths inside maya, it is possible to get each type of path separately, like textures, references, cache files, scenepath, but i want get all exisisting paths quickly. do you think there is any way? any idea? Thanks in advance. -- You received this

Re: [Maya-Python] Callback for Set Project?

2016-10-05 Thread Mahmoodreza Aarabi
This is for setting project, but i think it have callback too, i didn't check that though. or scriptJob. On Wed, Oct 5, 2016 at 12:09 PM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > hey man > i did this and it works fine for me > > from maya import cmds, melimpor

Re: [Maya-Python] Callback for Set Project?

2016-10-05 Thread Mahmoodreza Aarabi
hey man i did this and it works fine for me from maya import cmds, melimport pymel.core as pm workspace_path = os.path.normpath("your/path") pm.mel.setProject(workspace_path) mel.eval("print \"Project set successfully\\n\";") check it ​ On Wed, Oct 5, 2016 at 11:28 AM, Marcus Ottosson

[Maya-Python] Import Skin Weight maps without DialogBox

2016-09-11 Thread Mahmoodreza Aarabi
Hey masters I want to import skin weight maps of an object with python code, but i think maya does not have equivalent of `Rigging > skin > Import Wights Maps...`, i found that just there is one MEL command that will open the related dialogbox, thi: `mel.eval("ImportSkinWeightMaps;")`. but,

Re: [Maya-Python] ImageMagick and subprocess

2016-08-30 Thread Mahmoodreza Aarabi
so i should get stderr in subprocess. ok thanks guy i will test and say about it On Tue, Aug 30, 2016 at 11:48 PM, Justin Israel wrote: > Yes, OpenImageIO comes with python bindings. We use them at Weta in > python, C++, Go, and command line form. > > And yea, that

[Maya-Python] ImageMagick and subprocess

2016-08-30 Thread Mahmoodreza Aarabi
Hello guys There is a command based software for converting images and formats named ImageMagick i created an ui to give artist to use commands of imageMagick easily, when i run command for converting my images, it works until a file has problem, in this way magick give an error that i

Re: [Maya-Python] exportSelected in cmds.file

2016-07-21 Thread Mahmoodreza Aarabi
You are right, but this is not affect the code rename just get new name not new path i used exportAll flag and it works fine btw, thanks for the point On Thu, Jul 21, 2016 at 3:13 PM, Cesar Saez wrote: > If I recall correctly, windows paths uses \ instead of /... try

Re: [Maya-Python] Detecting Unused nodes in maya (Python)

2016-07-21 Thread Mahmoodreza Aarabi
er mel script > > If you read that script, you will see that the process of finding unused > nodes is multiple stages. It looks at shading groups, and connections, and > texture nodes, .. > > Justin > > On Thu, Jul 21, 2016 at 9:03 PM Mahmoodreza Aarabi <madoo...@gmail.com> > wrot

[Maya-Python] Detecting Unused nodes in maya (Python)

2016-07-21 Thread Mahmoodreza Aarabi
Hey guys I want to know how can we get a complete list of all unused nodes in maya, nodes that are detect with Optimize Menu, and after detecting it will remove them. Now i want to get all unused nodes before deleting them. there is any idea? this command will delete unused node in maya

Re: [Maya-Python] exportSelected in cmds.file

2016-07-21 Thread Mahmoodreza Aarabi
I think using exportAll will solve the problem cmds.file(path, force=True, typ="mayaAscii", exportAll=True, preserveReferences=True, shader=True, expressions=False, constructionHistory=True) ​ On Thu, Jul 21, 2016 at 10:26 AM, Mahmoodreza Aar

Re: [Maya-Python] exportSelected in cmds.file

2016-07-20 Thread Mahmoodreza Aarabi
ed, Jul 20, 2016 at 1:50 PM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > Hey Sumant > thanks for answer. > i test rename flag of file, but it does not give path, just can i give it > a new name, i think to a new way to use save flag instead of exportSelected. > > but i

Re: [Maya-Python] Getting the year of the Maya version used

2016-07-20 Thread Mahmoodreza Aarabi
cmds.about(c=True) >> # Result: u'201502261600-953408' # On Tuesday, July 12, 2016 at 10:11:17 AM UTC+4:30, Justin Israel wrote: Does the cutstring give you anything consistent? > > cmds.about(c=True)[:4] > > On my machine, the year is the first 4 characters. > > > > On Mon, Jul 11, 2016 at

[Maya-Python] exportSelected in cmds.file

2016-07-20 Thread Mahmoodreza Aarabi
Hello guys Please take a look at this and guide me. Situation: We have a FinalModel that is referenced in a scene for rig. In the rig scene, meshes get skin and rigging stuffs. after that i want to save the scene using code (Here using Pyblish’s Plugin) that use this code: cmds.file(path,

Re: [Maya-Python] Re: Callback not working as intended? (addTimeChangeCallback)

2016-07-14 Thread Mahmoodreza Aarabi
Hey Cesar nice idea in recent hours i found a way in one module that is like your idea but with list: callbacks = [] def do_something(): print "anything" def main(): global callbacks idx = OpenMaya.MEventMessage.addEventCallback("timeChanged", get_sec) callbacks.append(idx) def

Re: [Maya-Python] Re: Callback not working as intended? (addTimeChangeCallback)

2016-07-14 Thread Mahmoodreza Aarabi
there is any way to find all custom callbacks in a scene? On Thu, Jul 14, 2016 at 11:31 AM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > i think so > but removing it in the current session does not work. > i mean when i create a callback i have to find it in all callbacks an

Re: [Maya-Python] Re: Callback not working as intended? (addTimeChangeCallback)

2016-07-14 Thread Mahmoodreza Aarabi
to re-add it for each session. > > On 14 July 2016 at 07:30, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > >> i mean the callback will stick to the scene or not? >> i think custom callbacks does not stick to the scene. >> >> On Thu, Jul 14, 2016 at

Re: [Maya-Python] Re: Callback not working as intended? (addTimeChangeCallback)

2016-07-14 Thread Mahmoodreza Aarabi
i mean the callback will stick to the scene or not? i think custom callbacks does not stick to the scene. On Thu, Jul 14, 2016 at 10:56 AM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > thanks marcus > this is when i run a module in maya and in a function in it i want

Re: [Maya-Python] Re: Callback not working as intended? (addTimeChangeCallback)

2016-07-14 Thread Mahmoodreza Aarabi
ck(my_module.idx) > > ​ > > On 14 July 2016 at 07:14, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > >> Hello guys >> i know that this thread is old, but recently i was searching about one >> problem and i see this in group. >> >> i do this in another

Re: [Maya-Python] Re: Right way of pep8 long maya commands

2016-07-14 Thread Mahmoodreza Aarabi
Hey man i'm using SublimeText + Anaconda Pep8 Linter as its package, it is very good. On Wed, Jul 13, 2016 at 11:37 PM, Marcus Ottosson wrote: > In my view it’s almost always better to stick to the style of the API your > code interact with the most > … > I tend to

[Maya-Python] Re: Callback not working as intended? (addTimeChangeCallback)

2016-07-14 Thread Mahmoodreza Aarabi
Hello guys i know that this thread is old, but recently i was searching about one problem and i see this in group. i do this in another way, but i have different problem that i will say. i did this: def do_something(*args, **kwargs): print "hello" idx =

Re: [Maya-Python] Windows 10 removes 260-character limit

2016-05-31 Thread Mahmoodreza Aarabi
very nice thanks man On Tue, May 31, 2016 at 10:52 PM, Marcus Ottosson wrote: > Since it's been asked about here a few times, I figured I'd share this > wonderful miracle. :) > > - >

Re: [Maya-Python] How to get first item of a QListView

2016-05-07 Thread Mahmoodreza Aarabi
() item = current_index.data(QtCore.Qt.DisplayRole) good luck! ​ On Sat, May 7, 2016 at 1:52 PM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > Hello guys > > I want to know that how can i get text of elements of a QListView that > filled with a model. > > cu

[Maya-Python] How to get first item of a QListView

2016-05-07 Thread Mahmoodreza Aarabi
Hello guys I want to know that how can i get text of elements of a QListView that filled with a model. currentIndex? currentRow? or there is a way to access to its elements? thanks -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk

[Maya-Python] Procedural Facial Modeling

2016-04-16 Thread Mahmoodreza Aarabi
Hey guys I have a challenge here for creating a tool that we can create facial and body procedurally for characters level 2 or less important characters. for example, we can have a database of different base or blendshape models that combine them together and create new character. now this is

[Maya-Python] VoIP with Python Libraries

2016-02-28 Thread Mahmoodreza Aarabi
Hello to all I would like to know that anyone worked VoIP (Voice Over IP) with Python sofar? I want to create an app on local network to use VoIP and Voice chat like skype. Any idea? thanks -- You received this message because you are subscribed to the Google Groups "Python Programming for

Re: [Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-16 Thread Mahmoodreza Aarabi
e, Feb 16, 2016 at 10:34 PM Mahmoodreza Aarabi <madoo...@gmail.com> > wrote: > >> Justin, got it, i'm on your boat, but i mean if there is a situation that >> give me wrong result i like to know. why not! >> > > No problem :-) That's why I gave you a situation that

Re: [Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-16 Thread Mahmoodreza Aarabi
Justin, got it, i'm on your boat, but i mean if there is a situation that give me wrong result i like to know. why not! thanks man On Tue, Feb 16, 2016 at 12:38 PM, Justin Israel wrote: > > > On Tue, Feb 16, 2016 at 8:32 PM md wrote: > >> Ok ...

Re: [Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread Mahmoodreza Aarabi
AM, Justin Israel <justinisr...@gmail.com> wrote: > > > On Tue, Feb 16, 2016 at 6:27 PM Mahmoodreza Aarabi <madoo...@gmail.com> > wrote: > >> Hey man i suggest that use this method for running your window in maya: >> >> class YourClass(): >>

Re: [Maya-Python] Re: need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread Mahmoodreza Aarabi
Hey man i suggest that use this method for running your window in maya: class YourClass(): def getMainWindow(): mainWindow = QtGui.QApplication.activeWindow() while True: lastWin = mainWindow.parent() if lastWin: mainWindow = lastWin else:

Re: [Maya-Python] Pyblish and ftrack Webinar

2016-02-15 Thread Mahmoodreza Aarabi
very nice man Good luck! i will join :) On Tue, Feb 16, 2016 at 1:05 AM, Marcus Ottosson wrote: > Hi all, > > I'm hosting a webinar. :) > > Maybe you would like to join? It will be my first, and it will be about > Pyblish and how it works in conjunction with ftrack, but

Re: [Maya-Python] need help with userSetup.py

2016-02-15 Thread Mahmoodreza Aarabi
Hey man i suggest that use this method for running your window in maya: class YourClass(): def getMainWindow(): mainWindow = QtGui.QApplication.activeWindow() while True: lastWin = mainWindow.parent() if lastWin: mainWindow = lastWin else:

Re: [Maya-Python] Using Bootstrap or Fontawesome in PySide GUIs

2016-02-12 Thread Mahmoodreza Aarabi
i added u'label', but does not work. no not two version of code. i have a py file and a bat file. when i run the bat file that call the py file, in my system it does not work. when i run the bat file (shared its folder) in clean VM it works make sense? i didn't change qtawesome code On Fri, Feb

Re: [Maya-Python] Using Bootstrap or Fontawesome in PySide GUIs

2016-02-12 Thread Mahmoodreza Aarabi
fa_icon = qta.icon('fa.camera') returns QIcon? ​ On Fri, Feb 12, 2016 at 11:31 AM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > i added u'label', but does not work. > no not two version of code. > i have a py file and a bat file. when i run the bat file that call the py >

Re: [Maya-Python] Using Bootstrap or Fontawesome in PySide GUIs

2016-02-11 Thread Mahmoodreza Aarabi
hey man thanks i have this program as test: #!/usr/bin/pythonimport sysfrom PySide import QtCore, QtGui# from qtpy import QtCore, QtGuiimport qtawesome as qta app = QtGui.QApplication(sys.argv) fa_icon = qta.icon('fa.camera') fa_button = QtGui.QPushButton(fa_icon, 'Camera')

Re: [Maya-Python] Using Bootstrap or Fontawesome in PySide GUIs

2016-02-11 Thread Mahmoodreza Aarabi
Hey Roy Thanks, it is good and i tested it and it worked. but instead of importing PySide we should import qtpy, this will not cause problem later? ​ On Wed, Feb 10, 2016 at 11:02 PM, Roy Nieterau wrote: > I'm using FontAwesome through QtAwesome and it's great. It's a

[Maya-Python] Using Bootstrap or Fontawesome in PySide GUIs

2016-02-10 Thread Mahmoodreza Aarabi
Hello Developer i want to know anybody used FontAwesome or Bootstrap in GUIs that created with PySide? How is the workflow? 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

Re: [Maya-Python] long paths problem in windows

2016-02-08 Thread Mahmoodreza Aarabi
PIs. > > I wouldn't want to base any long-term pipe code around that sort of > solution though... > > On Mon, Feb 8, 2016 at 10:17 AM Justin Israel <justinisr...@gmail.com> > wrote: > >> Sing a song with me everyone! "We love Windows!" >> >&g

Re: [Maya-Python] long paths problem in windows

2016-02-08 Thread Mahmoodreza Aarabi
Hey justin i created my path with "\\?\D:\path\" that you said. do you believe that it is not remove now? with any permission!!! :D On Sun, Feb 7, 2016 at 10:50 PM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > Yes man. it was helpfull. now i have to use windows. > I try

Re: [Maya-Python] long paths problem in windows

2016-02-07 Thread Mahmoodreza Aarabi
th\... > > Does this actually work? > > Justin > > On Sun, 7 Feb 2016 6:57 PM Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > >> Hello to all >> >> I have a problem that probabely you faced with it, in windows when we >> copy a file from a source and

Re: [Maya-Python] long paths problem in windows

2016-02-07 Thread Mahmoodreza Aarabi
Yes man. it was helpfull. now i have to use windows. I try to use relative Paths Btw, thanks. :) On Sun, Feb 7, 2016 at 10:15 PM, Justin Israel <justinisr...@gmail.com> wrote: > > > On Sun, 7 Feb 2016 10:02 PM Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > >>

[Maya-Python] long paths problem in windows

2016-02-06 Thread Mahmoodreza Aarabi
Hello to all I have a problem that probabely you faced with it, in windows when we copy a file from a source and paste it in a long path (i mean a deep path) it does not paste. Or if you have a long path and you want to create a simple text file in it you can just write some words in its name.

Re: [Maya-Python] how should I mirror joints?

2016-01-15 Thread Mahmoodreza Aarabi
i'm capturing a video for you from one of my characters that is related to Pyblish.com project. i hope you can use it On Fri, Jan 15, 2016 at 5:28 PM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > yes, but in a rig you will not rotate joints, you will rotate controlers. > s

Re: [Maya-Python] how should I mirror joints?

2016-01-15 Thread Mahmoodreza Aarabi
g one arm, then group, and the scale -1 > the group, both arms will translate in the same direction. > > El viernes, 15 de enero de 2016, 11:49:41 (UTC+1), Mahmoodreza Aarabi > escribió: >> >> Hey man >> Mirroring in rig symetrical characters are a little tricky. >

Re: [Maya-Python] how should I mirror joints?

2016-01-15 Thread Mahmoodreza Aarabi
s (with a > shape) as controllers. > > cheers > > > El viernes, 15 de enero de 2016, 14:58:46 (UTC+1), Mahmoodreza Aarabi > escribió: >> >> yes, but in a rig you will not rotate joints, you will rotate controlers. >> so if you use rotation in gimbal lock mode whe

Re: [Maya-Python] how should I mirror joints?

2016-01-15 Thread Mahmoodreza Aarabi
the rig have fk and ik, i just show you fk, your need on symetrical works on ik too. just check the rig. many things should be checked in a rig, and we can't use just parenting in rig. make sense? On Fri, Jan 15, 2016 at 8:25 PM, Rudi Hammad wrote: > I mean that if you

Re: [Maya-Python] how should I mirror joints?

2016-01-15 Thread Mahmoodreza Aarabi
animate the vertices >> directly. It’s has much better performance. >> ​ >> >> On 15 January 2016 at 16:59, Mahmoodreza Aarabi <mado...@gmail.com> >> wrote: >> >>> the rig have fk and ik, i just show you fk, your need on symetrical >>> works on ik too.

Re: [Maya-Python] Getting all renderlayers an object belongs to

2015-12-28 Thread Mahmoodreza Aarabi
hey man i think this will be benefit to look at: from maya import cmds cmds.editRenderLayerMembers(...); ​ On Mon, Dec 28, 2015 at 2:43 PM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > hey man > i think this will be benefit to look at: > ```python > fro

Re: [Maya-Python] Getting all renderlayers an object belongs to

2015-12-28 Thread Mahmoodreza Aarabi
hey man i think this will be benefit to look at: ```python from maya import cmds cmds.editRenderLayerMembers(...); ``` On Mon, Dec 28, 2015 at 2:23 PM, Michał Frątczak wrote: > Hello ! > Is there any easy method to get all renderlayers for a specific node ? Or > do I have to

Re: [Maya-Python] MELy Christmas!

2015-12-24 Thread Mahmoodreza Aarabi
Haha nice words man Happy Holiday for all and new great year! :) On Thu, Dec 24, 2015 at 3:06 PM, Marcus Ottosson wrote: > And a haPY new year! :) > > -- > *Marcus Ottosson* > konstrukt...@gmail.com > > -- > You received this message because you are subscribed to the

Re: [Maya-Python] Wrap deformer connection

2015-12-06 Thread Mahmoodreza Aarabi
Use http://markdown-here.com/ for highlighting your code in group it will be show your code better :) On Sun, Dec 6, 2015 at 11:45 AM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > Hey > did you use cmds.connectAttr command? > ​ > > On Sat, Dec 5, 2015 at 10:05 PM, &

Re: [Maya-Python] Wrap deformer connection

2015-12-06 Thread Mahmoodreza Aarabi
Hey did you use cmds.connectAttr command? ​ On Sat, Dec 5, 2015 at 10:05 PM, wrote: > Can anyone tell me how to connect a wrap deformer. > I have a full body where all the shape going to be connected and then need > to wrap my cut head to the full body and extract those

Re: [Maya-Python] The Pyblish Developer Guide

2015-11-18 Thread Mahmoodreza Aarabi
Hi I will be with you Marcus. with my full power. ;) On Wed, Nov 18, 2015 at 11:26 PM, Marcus Ottosson wrote: > Hi all, > > I recently put together a guide for those looking to extend, develop and > bend Pyblish to their own will and would like to share it with you. > >

Re: [Maya-Python] ls selection prints output differently

2015-11-17 Thread Mahmoodreza Aarabi
me if I did not state that clearly. > > I am trying to get the same/similar output when you select locator2 but > instead, *[u'locator2', u'locator2|locator3'] *is the result of it > > On Tuesday, November 17, 2015 at 4:45:18 PM UTC+8, Mahmoodreza Aarabi > wrote: >> >&g

Re: [Maya-Python] ls selection prints output differently

2015-11-17 Thread Mahmoodreza Aarabi
hey this locators based on your tree aren't children of locator2: *[u'locator4', u'locator5', u'locator6']* this code just give you everything you select, not their childrens what exactly you want to print out? On Tue, Nov 17, 2015 at 12:06 PM, likage wrote: > I have

Re: [Maya-Python] ls selection prints output differently

2015-11-17 Thread Mahmoodreza Aarabi
i did this is the result [u'locator2', u'locator3'] restart maya and create a new scene, create locator1 and duplicate it a few times then parent together as you want then test the code again ​ On Tue, Nov 17, 2015 at 12:24 PM, likage wrote: > Select both locator2 and

Re: [Maya-Python] ls selection prints output differently

2015-11-17 Thread Mahmoodreza Aarabi
path of that he selected ​ On Tue, Nov 17, 2015 at 12:44 PM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > This is logical. > what is the problem? > > On Tue, Nov 17, 2015 at 12:43 PM, Mahmoodreza Aarabi <madoo...@gmail.com> > wrote: > >> my tree in o

Re: [Maya-Python] ls selection prints output differently

2015-11-17 Thread Mahmoodreza Aarabi
You can use this for formatting your code in your email: http://markdown-here.com/ On Tue, Nov 17, 2015 at 12:28 PM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > if you use long (l) flag, it will return fullpath > > import maya.cmds as cmds > sel = cmds.ls(sl=True

Re: [Maya-Python] ls selection prints output differently

2015-11-17 Thread Mahmoodreza Aarabi
This is logical. what is the problem? On Tue, Nov 17, 2015 at 12:43 PM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > my tree in outliner is like this > > >locator1 > --->locator2 > >locator3 > > and cmds.ls('locator3', l=True) give me

Re: [Maya-Python] ls selection prints output differently

2015-11-17 Thread Mahmoodreza Aarabi
my tree in outliner is like this >locator1 --->locator2 >locator3 and cmds.ls('locator3', l=True) give me this result: [u'|locator1|locator2|locator3'] ​ On Tue, Nov 17, 2015 at 12:39 PM, Nicolas Combecave < zezebubulon...@gmail.com> wrote: > It looks like that you have another

Re: [Maya-Python] ls selection prints output differently

2015-11-17 Thread Mahmoodreza Aarabi
if you use long (l) flag, it will return fullpath import maya.cmds as cmds sel = cmds.ls(sl=True, l=True)print sel result: [u'|locator1|locator2', u'|locator1|locator2|locator3'] ​ On Tue, Nov 17, 2015 at 12:26 PM, Mahmoodreza Aarabi <madoo...@gmail.com> wrote: > i did > this i

Re: [Maya-Python] Re: Cannot seem to permanently set rotateOrder to a different value

2015-11-16 Thread Mahmoodreza Aarabi
Hello Alan i tried this now and it works from maya import cmds jnt = str(cmds.ls(sl=True)[0]) cmds.setAttr(jnt + '.rotateOrder', 2) # zxy it does not work for you at all? ​ On Mon, Nov 16, 2015 at 9:46 PM, Alan Fregtman wrote: > For the record I tried via pymel, via

Re: [Maya-Python] cmds.polyExtrudeFacet thickness feature

2015-11-14 Thread Mahmoodreza Aarabi
Good luck! :) On Sat, Nov 14, 2015 at 6:05 PM, wrote: > cool thanks so much madoodia > > -- > 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

Re: [Maya-Python] pymel crashing maya.standalone

2015-11-13 Thread Mahmoodreza Aarabi
i had a problem before with importing pymel in maya (in windows) and it was related to C++ Redist, after i install all verions of C++ fom C++ 2005 to C++ 2013 the error is solved + dotnet framework i hope it helps On Fri, Nov 13, 2015 at 7:16 AM, Robert White wrote: >

Re: [Maya-Python] cmds.polyExtrudeFacet thickness feature

2015-11-13 Thread Mahmoodreza Aarabi
Hello You have many options for extruding your face. first: using polyExtrudeFacet command based on faces you want to extrude from maya import cmds cmds.polyPlane(n="plane") cmds.polyExtrudeFacet('plane.f[71:72]', ltz=0.2) second: using polyExtrudeFace[number of extrude node]: and changing the

Re: [Maya-Python] Maya syntax highlighting in sublime

2015-06-15 Thread Mahmoodreza Aarabi
hey what language you need to be highlighted? On Tue, Jun 16, 2015 at 12:30 AM, kevcorte...@gmail.com wrote: Hey Guys, trying to get syntax highlighting working in sublime, but I can't figure this out for the life of me, I really wish the instructions weren't so vague. Can someone who

Re: [Maya-Python] Maya syntax highlighting in sublime

2015-06-15 Thread Mahmoodreza Aarabi
if you mean python highlighting sublime have and it detect it automatically, if you need to show you classes and functions of it i didn't use api in sublime but i used pyside in it, for that you should add 'C:\Program Files\Autodesk\Maya2015\Python\Lib\site-packages;' (your directory) in this way

Re: [Maya-Python] Maya syntax highlighting in sublime

2015-06-15 Thread Mahmoodreza Aarabi
this way works for code completion for me for pyside. test it On Tue, Jun 16, 2015 at 12:44 AM, kevcorte...@gmail.com wrote: sorry, I meant code completion -- You received this message because you are subscribed to the Google Groups Python Programming for Autodesk Maya group. To

Re: [Maya-Python] How to make a square button ? PyQt/PySide

2015-05-24 Thread Mahmoodreza Aarabi
there is many ways. 1. using css 2. set flat it https://deptinfo-ensip.univ-poitiers.fr/ENS/pyside-docs/PySide/QtGui/QPushButton.html#PySide.QtGui.PySide.QtGui.QPushButton.setFlat in maya 2016 it change any ui to flat style On Sun, May 24, 2015 at 6:28 PM, Jean Noval jeanno...@gmail.com wrote:

Re: [Maya-Python] Getting license serial number

2015-05-05 Thread Mahmoodreza Aarabi
But Anthony, this line does not work on maya 2016 : cmds.license(info=True) info flag is obsolete in 2016 ​ On Tue, May 5, 2015 at 10:27 AM, Anthony Tan anthony@greenworm.net wrote: I know, it's just parsing text, but isn't text slice pretty much a one-liner anyway? import re import

Re: [Maya-Python] Getting license serial number

2015-05-05 Thread Mahmoodreza Aarabi
on what is trying to be done (do products under subscription even have a serial number??) as to what kind of approach you'd do there. On Tue, May 5, 2015, at 04:06 PM, Mahmoodreza Aarabi wrote: But Anthony, this line does not work on maya 2016 : cmds.license(info=True) info flag is obsolete

Re: [Maya-Python] Getting license serial number

2015-05-04 Thread Mahmoodreza Aarabi
hey from maya import cmds cmds.license(showProductInfoDialog=True) just this command works in maya 2016 ​ On Mon, May 4, 2015 at 8:42 PM, Kenneth Ibrahim kenibra...@gmail.com wrote: Simple question and hopefully 1 liner script answer :) How does one poll the serial number of the currently

Re: [Maya-Python] Execute code on Maya exit

2015-04-24 Thread Mahmoodreza Aarabi
=['quitApplication', myFunction] ) ​ On Thu, Apr 23, 2015 at 9:58 AM Mahmoodreza Aarabi madoo...@gmail.com wrote: I think there is a ScriptJob for this. And i think this is discussed earlier in this group. On Thu, Apr 23, 2015 at 12:56 AM, Fredrik Averpil fredrik.aver...@gmail.com wrote

Re: [Maya-Python] Execute code on Maya exit

2015-04-23 Thread Mahmoodreza Aarabi
I think there is a ScriptJob for this. And i think this is discussed earlier in this group. On Thu, Apr 23, 2015 at 12:56 AM, Fredrik Averpil fredrik.aver...@gmail.com wrote: Does anyone know if it is possible to tell Maya to execute a function when it exits? Regards, Fredrik -- You

Re: [Maya-Python] Camera Creation in MEL

2015-04-20 Thread Mahmoodreza Aarabi
hey Don't use dash in name _X2A-1Q_ instead of dash use underscore _ maya itself change dash - to underscore _ and this creates error On Mon, Apr 20, 2015 at 1:56 AM, likage dissidia@gmail.com wrote: I am coding some MEL for camera creations, I have encountered an issue that have make me

Re: [Maya-Python] Checking if channels are static

2015-04-17 Thread Mahmoodreza Aarabi
Hello Static Channels are related to when you set a single keyframe on an object when you want to delete it you can do it with the menu you want.but if you want to detect a static channel on an animation curve of an object you can use this code: from maya import cmds sels = cmds.ls(sl=True)

Re: [Maya-Python] Checking if channels are static

2015-04-17 Thread Mahmoodreza Aarabi
) cmds.setAttr((o + '.' + at), temp_value) detect_static_channel() Good luck :) ​ On Fri, Apr 17, 2015 at 5:00 AM, Mahmoodreza Aarabi madoo...@gmail.com wrote: i reach to good result for this but this mel code create a camera that all keyable attributes have key, also some attributes like

Re: [Maya-Python] Checking if channels are static

2015-04-17 Thread Mahmoodreza Aarabi
or not in a shot. If it's static there's a potential advantage in render frame range on some passes. W dniu 2015-04-17 o 12:07, Mahmoodreza Aarabi pisze: Hello Static Channels are related to when you set a single keyframe on an object when you want to delete it you can do it with the menu you

Re: [Maya-Python] PyMel - name at creation inconsistency

2015-03-05 Thread Mahmoodreza Aarabi
i show my code, and you can find differentiation. i think you should not set name when you create object(locator) import pymel.core as pmfor x in range(10): grp = pm.group(em=True) t = pm.polySphere(n='test', ch=False)[0] t.setParent(grp) for x in range(10): grp =

Re: [Maya-Python] Weta hiring again (General Pipeline)

2015-01-31 Thread Mahmoodreza Aarabi
HoRaa :D i'm coming Welington :D On Sun, Feb 1, 2015 at 11:12 AM, Anthony Tan anthony@greenworm.net wrote: How in gods name does one jam a coffee machine?? Messy yes. Blowing up the boiler, sure. Jams though? On 1 February 2015 17:56:26 GMT+11:00,

Re: [Maya-Python] Merry Christmas!

2014-12-23 Thread Mahmoodreza Aarabi
Thanks. and for you. :) On Wed, Dec 24, 2014 at 2:24 AM, Marcus Ottosson konstrukt...@gmail.com wrote: Hope you all have a great Christmas, wherever you may be. :) Marcus -- *Marcus Ottosson* konstrukt...@gmail.com -- You received this message because you are subscribed to the Google

Re: [Maya-Python] performSearchReplaceNames, Not working in Python

2014-10-13 Thread Mahmoodreza Aarabi
hey import maya.mel as mel mel.eval('performSearchReplaceNames 1;') good luck ​ On Mon, Oct 13, 2014 at 11:46 PM, Jake Van jvvan...@gmail.com wrote: I am trying to get the Search and Replace window to open up at the end of my script. I have seen things that suggest doing your own search and

Re: [Maya-Python] performSearchReplaceNames, Not working in Python

2014-10-13 Thread Mahmoodreza Aarabi
UTC-7, Mahmoodreza Aarabi wrote: hey import maya.mel as mel mel.eval('performSearchReplaceNames 1;') good luck ​ On Mon, Oct 13, 2014 at 11:46 PM, Jake Van jvva...@gmail.com wrote: I am trying to get the Search and Replace window to open up at the end of my script. I have seen things

Re: [Maya-Python] Load up PySide window and lock main Maya window behind it

2014-10-06 Thread Mahmoodreza Aarabi
I use this: This Is A Template Of PySide Programs In Maya from PySide.QtCore import *from PySide.QtGui import * from maya import OpenMayaUIfrom maya import cmds import shiboken class Window(QDialog): docstring for Window def __init__(self, *args, **kwargs): super(Window,

Re: [Maya-Python] select a point on a poly surface and have it return the coords?

2014-09-22 Thread Mahmoodreza Aarabi
You can write plugin with Maya Python API too. but i think you get good result with maya commands too with mel and python script. On Mon, Sep 22, 2014 at 12:26 PM, e9554...@gmail.com wrote: i guess plugins are c++ right. way over my head, but ill look into it. thanks, Sam -- You received

Re: [Maya-Python] pymel.internal.startup : ERROR : maya.standalone was successfully initialized, but pymel failed to import maya.cmds (or it was not populated)

2014-09-21 Thread Mahmoodreza Aarabi
For me, i have the error (Error Dialog) in maya too, when i use this command: import pymel.core or import pymel.core as pm but i don’t know tushar sankhala’s error. and i could not get the book. Geordie Martinez, if you have the book please share that page. thanks ​ On Sun, Sep 21, 2014 at 4:43

Re: [Maya-Python] pymel.internal.startup : ERROR : maya.standalone was successfully initialized, but pymel failed to import maya.cmds (or it was not populated)

2014-09-20 Thread Mahmoodreza Aarabi
Hey it is better you share your code snippet,but, you can use cmds in this way first: import maya.cmds as cmds import pymel.core as pm then : cmds.about() pm.about() good luck ​ On Sat, Sep 20, 2014 at 9:57 AM, tushar sankhala tusharsankh...@gmail.com wrote: Hi All, I was mostly

Re: [Maya-Python] pymel.internal.startup : ERROR : maya.standalone was successfully initialized, but pymel failed to import maya.cmds (or it was not populated)

2014-09-20 Thread Mahmoodreza Aarabi
. Thanks On Saturday, 20 September 2014 12:47:24 UTC+5:30, Mahmoodreza Aarabi wrote: ok, did you use import pymel.core as pmc in external python interpreter? i have another problem in Maya2014 (script editor) but when i import pymel.core as pm it give me a error dialog : [image: Inline

Re: [Maya-Python] pymel.internal.startup : ERROR : maya.standalone was successfully initialized, but pymel failed to import maya.cmds (or it was not populated)

2014-09-20 Thread Mahmoodreza Aarabi
editor wingsIDE but no luck. Thanks On Saturday, 20 September 2014 12:47:24 UTC+5:30, Mahmoodreza Aarabi wrote: ok, did you use import pymel.core as pmc in external python interpreter? i have another problem in Maya2014 (script editor) but when i import pymel.core as pm it give me

Re: [Maya-Python] pymel.internal.startup : ERROR : maya.standalone was successfully initialized, but pymel failed to import maya.cmds (or it was not populated)

2014-09-20 Thread Mahmoodreza Aarabi
Can you give Full name of book? or give any link of the page? On Sat, Sep 20, 2014 at 11:47 PM, Geordie Martinez geordiemarti...@gmail.com wrote: Later in in the book (page 256-257) galanakis shows how to defer the loading of pymel. Try that perhaps it will help out. On Friday,

Re: [Maya-Python] pymel.internal.startup : ERROR : maya.standalone was successfully initialized, but pymel failed to import maya.cmds (or it was not populated)

2014-09-20 Thread Mahmoodreza Aarabi
OK, i found the book. thanks. On Sun, Sep 21, 2014 at 12:06 AM, Justin Israel justinisr...@gmail.com wrote: On Sun, Sep 21, 2014 at 8:33 AM, Mahmoodreza Aarabi madoo...@gmail.com wrote: Can you give Full name of book? or give any link of the page? It was already mentioned in the first

Re: [Maya-Python] pymel.internal.startup : ERROR : maya.standalone was successfully initialized, but pymel failed to import maya.cmds (or it was not populated)

2014-09-20 Thread Mahmoodreza Aarabi
I found the book link i mean. not the book itself. anyway thanks ;) On Sun, Sep 21, 2014 at 12:08 AM, Mahmoodreza Aarabi madoo...@gmail.com wrote: OK, i found the book. thanks. On Sun, Sep 21, 2014 at 12:06 AM, Justin Israel justinisr...@gmail.com wrote: On Sun, Sep 21, 2014 at 8:33 AM

Re: [Maya-Python] Find component selection center

2014-09-16 Thread Mahmoodreza Aarabi
Hey if your mean is find world position of some selected component (vertex here) you should use an script like this: import maya.cmds as cmds selVerts = cmds.ls(sl=True) clst = cmds.cluster() pos = cmds.xform(clst[1], q=True, ws=True, rp=True) loc = cmds.spaceLocator() cmds.move(pos[0], pos[1],

Re: [Maya-Python] maya dockControl problem

2014-09-12 Thread Mahmoodreza Aarabi
Hey i fix it in this way: (not professional manner in writing code, but it works for you now) name = mc.textFieldGrp() self.wg['textFieldGrp'] = name.split('|')[-1] new code: import maya.cmds as mc class SimpleUI(object): def __init__(self, *args): self.wg={} self.wg['win'] =

Re: [Maya-Python] PySide unwrapinstance analog

2014-09-11 Thread Mahmoodreza Aarabi
Thanks alot dear justin :) On Saturday, April 6, 2013 12:02:50 AM UTC+4:30, Justin Israel wrote: The equivalent of sip for PySide is shiboken: import shiboken ptr = long(shiboken.getCppPointer(obj)[0]) On Apr 6, 2013, at 12:46 AM, vux wrote: In PyQt i had function to get

Re: [Maya-Python] Production Pipeline Fundamentals

2014-05-22 Thread Mahmoodreza Aarabi
yes. I am reading it. i learn more things from it. it is very good book On Thu, May 22, 2014 at 12:11 PM, Marcus Ottosson konstrukt...@gmail.comwrote: I just finished reading this book and found it very helpful and full of interesting use-cases. Production Pipeline Fundamentals for Film and

  1   2   >