Never mind, I just set up the state=1 with the q=True and it seems to be working just fine thanks
On Sat, Dec 26, 2009 at 2:11 PM, Martin La Land Romero < martinmrom...@gmail.com> wrote: > I just realized that I did not ask you the question! > how do we query the state? > > myIsoState = pm.isolateSelect(q=True, state, modelPanel4) > > > On Sat, Dec 26, 2009 at 8:13 AM, Martin La Land Romero < > martinmrom...@gmail.com> wrote: > >> Hello Chad, >> >> This might sound like a lame question but I am just getting used to Pymel. >> >> This is my line in MEL >> I am trying to query the isolateSelect mode. >> int $myIsolState = `isolateSelect -q -state modelPanel4`; >> >> This is Pymel, >> >> myIsoState = pm.isolateSelect(q=True, state, modelPanel4) >> I get this error >> # SyntaxError: ('non-keyword arg after keyword arg', ('<maya console>', 2, >> None, None)) # >> >> Not sure if it is because I don't have any arguments in the state, since >> that is the one that I need to query I left it blank. >> >> >> 2009/12/26 Miguel González Viñé <lichi...@gmail.com> >> >> Hi Chad, thanks for this new release!I don't know if you have changed >>> this or there's something wrong in 1.0.0b2, but when I create an >>> sphere or any other node I don't get the type before its name: >>> >>> sphere1, hist = polySphere(name='mySphere') >>> grp = group(sphere1) >>> sphere1 >>> # Result: group1|mySphere # >>> >>> instead of: >>> Transform(u'group1|mySphere') >>> >>> >>> If I get the list of cameras in the scene it shows the node type: >>> ls(type='camera') >>> # Result: [nt.Camera(u'frontShape'), nt.Camera(u'perspShape'), >>> nt.Camera(u'sideShape'), nt.Camera(u'topShape')] # >>> >>> but if I assign the first camera to a variable: >>> camF = ls(type='camera')[0] >>> camF >>> # Result: frontShape # >>> >>> Also I can't get it with the type() function: >>> type(camF) >>> # Result: # >>> print type(camF) >>> <class 'pymel.core.nodetypes.Camera'> >>> type("test") >>> # Result: <type 'str'> # >>> print type("test") >>> <type 'str'> >>> >>> I'm doing something wrong? >>> Thanks! >>> >>> >>> >>> >>> On Tue, Dec 22, 2009 at 9:53 PM, Chad Dombrova <c...@chadrikvon.com> >>> wrote: >>> > hi all, >>> > we've been working hard on the next major release of PyMEL and it's >>> ready to beta test! check out what's new here: >>> http://www.luma-pictures.com/tools/pymel/docs/1.0/whats_new.html >>> > >>> > there are some fairly big changes so be sure to read the "what's new" >>> section first and pay close attention to the "install" documentation, as it >>> has changed since verion 0.9.x. keep in mind that some of the docs are >>> still in progress. >>> > >>> > there's also a new beta for 0.9.3 which provides pymel 1.0 forward >>> compatibility >>> > >>> > downloads: >>> > http://pymel.googlecode.com/files/pymel-1.0.0b1.zip >>> > http://pymel.googlecode.com/files/pymel-0.9.3b1.zip >>> > >>> > docs: >>> > ttp://www.luma-pictures.com/tools/pymel/docs/1.0/ >>> > >>> > let us know if you have any problems so we can fix them for the final >>> release. >>> > >>> > -chad >>> > >>> > >>> > -- >>> > http://groups.google.com/group/python_inside_maya >>> >>> -- >>> http://groups.google.com/group/python_inside_maya >>> >> >> >> >> -- >> Martin La Land Romero >> www.martinromerovfx.com >> martinmrom...@gmail.com >> (415)261-2172 >> > > > > -- > Martin La Land Romero > www.martinromerovfx.com > martinmrom...@gmail.com > (415)261-2172 > -- Martin La Land Romero www.martinromerovfx.com martinmrom...@gmail.com (415)261-2172 -- http://groups.google.com/group/python_inside_maya