I was working on this little tool, but the last part is not working, any
hints.

#This tool isolate on and off the selected objects.
import pymel.core as pm #doctest: +SKIP

    #Get the current panel.
myPanel = pm.getPanel(withFocus=True)


#Get active panel type of.
myPanelType = pm.getPanel(type='myPanel')

#Create a conditon for when modelPanel is on or off.
if (myPanelType == 'modelPanel'):
    #Querry the isolation state.
    myIsoSel=pm.isolateSelect('myPanel', q=True, state=1)

#Create a condition that says, if IsolateSel is 0 set it to 1.
if(myIsoSel == 0):
    enableIsolateSelect('myPanel',state =1 )
else:
    enableIsolateSelect('myPanel', state =0)

On Thu, Dec 24, 2009 at 2:47 PM, Martin La Land Romero <
martinmrom...@gmail.com> wrote:

> Thanks Chad
>
>
> On Thu, Dec 24, 2009 at 2:32 PM, Chad Dombrova <chad...@gmail.com> wrote:
>
>> i've never used komodo. maybe someone else on the list can help.
>>
>> btw, the eclipse completion stubs included with the 1.0 beta are not
>> working properly.  i've got a fix ready that i'll release shortly.
>>
>> lastly, the completion stub files in extras/completion are exactly the
>> same as wing's .pi files.  just rename the py's to pi's.
>>
>> -chad
>>
>>
>>
>> On Dec 24, 2009, at 4:39 PM, Martin La Land Romero wrote:
>>
>> Hello Chad,
>>
>> I just wanted to let you know that Pymel is working just fine with Maya
>> 2009 and 2010 64bit.
>> I have a question since I didn't hear anything yet from Maxya.
>> I have ActiveState Komodo IDE 4.4, how do I import the pymel module into
>> Komodo?
>>
>> Martin
>>
>> On Thu, Dec 24, 2009 at 1:19 PM, Chad Dombrova <chad...@gmail.com> wrote:
>>
>>>
>>> > I mentioned to you a couple weeks back the auto-rigging script I've
>>> > been working on - I'm going to convert it to be compatible with PyMel
>>> > 1.0, and I'll release it once it's complete.
>>>
>>> sounds good.  look forward to checking it out.
>>>
>>> > Ever since converting
>>> > all those someNode.setScale() commands to someNode.scale.set(), I
>>> > haven't had any problems, so thanks again for that tip.
>>>
>>> we made some adjustments to the api wrap in 1.0 that *may* remedy the
>>> setScale problem.  would you mind putting those back in place and letting us
>>> know if you notice any more instabilities?
>>>
>>> -chad
>>>
>>> --
>>> http://groups.google.com/group/python_inside_maya
>>>
>>
>>
>>
>> --
>> Martin La Land Romero
>> www.martinromerovfx.com
>> martinmrom...@gmail.com
>> (415)261-2172
>>
>> --
>> 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

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to