Re: [Maya-Python] Create function for optionMenuGrp

2014-10-13 Thread likage
I have kind of manage to get it to work. This is actually an exporting object plugin but I have got 2 problems. 1. My initial window aren't popping up when I select my object >> File >> Export selection 2. Based on the selection, will it be possible for me to grab the different values based on t

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

2014-10-13 Thread Mahmoodreza Aarabi
Your welcome. This is a way that you get your result fast, certainly there are better ways. On Tue, Oct 14, 2014 at 3:34 AM, Jake Van wrote: > Thank you so much. I now feel very dumb for how long I have been trying to > get that to work. > > On Monday, October 13, 2014 1:19:37 PM UTC-7, Mahmoodr

Re: [Maya-Python] sel.getDagPath(0,dag) meaning....

2014-10-13 Thread kevcortez99
You seem to be importing the python version 2.0 api, but are using methods as if they're from version 1.0 for 2.0, it would be dag = sel.getDagPath(0) for version 1.0, you would write it like you have it, but you need to be importing maya.OpenMaya not maya.api.OpenMaya hope that helps. --

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

2014-10-13 Thread Jake Van
Thank you so much. I now feel very dumb for how long I have been trying to get that to work. On Monday, October 13, 2014 1:19:37 PM 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

[Maya-Python] Dictionary help

2014-10-13 Thread flaye
I'd like to get your feedback to see if I'm approaching this correctly. I'm writing an autorigger that takes care of the GUI (calling an external UI class) along with setting up the contr

Re: [Maya-Python] sel.getDagPath(0,dag) meaning....

2014-10-13 Thread e9554564
not sure what that means. this? import maya.cmds as cmds import sys, math import maya.api.OpenMaya as om Sam -- 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

Re: [Maya-Python] sel.getDagPath(0,dag) meaning....

2014-10-13 Thread 33thirds
Which api are you importing? -- 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...@googlegroups.com. To view thi

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 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 > replace, but I

[Maya-Python] performSearchReplaceNames, Not working in Python

2014-10-13 Thread Jake Van
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 replace, but I want it to be interactive and I am not that far in Python yet. In fact I just started. In mel the command 'performSearchReplaceNames 1;' w

Re: [Maya-Python] sel.getDagPath(0,dag) meaning....

2014-10-13 Thread e9554564
thanks Justin, here is an example of the code i have: def returnCollisionPoints(point=(point), dir=(-newX,-newY, -newZ)): sel = om.MSelectionList() dag = om.MDagPath() sel.add("pSphereShape1") sel.getDagPath(0,dag) mesh = om.MFnMesh(dag)

Re: [Maya-Python] sel.getDagPath(0,dag) meaning....

2014-10-13 Thread Justin Israel
Which class are you dealing with when you call getDagPath? The docs explain the usage: http://download.autodesk.com/us/maya/2010help/API/class_m_selection_list.html#e2c80bef6a4c0c23fdba1bba25bc31c5 http://download.autodesk.com/us/maya/2011help/API/class_m_it_selection_list.html#47eaf93b417b90d4f0

[Maya-Python] sel.getDagPath(0,dag) meaning....

2014-10-13 Thread e9554564
hello everyoneee i have a script which works fine when i run it in the script editor, but when i add it to part of my larger script and run it, it has this error: formLayout.py line 215: getDagPath() takes exactly one argument (2 given) this is line 215: sel.getDagPath(0,dag) Im still not very