Hi guys.

I want to print some text anytime that the Attribute editor or channel box is 
visible. it works fine, but i want this as a scriptjob condition i guess, 
because i want to run while a specific tool is active, runtime(?).

How do I make this a condition for a scriptjob?or is there any other way of 
acomplish this without scriptjobs? Thanks a lot

My code so far:

def cond():
    AEviz = cmds.dockControl('dockControl4', q=1, r=1)
    CBviz = cmds.dockControl('dockControl1', q=1, r=1)
    
    myCondition = AEviz or CBviz
    
    if myCondition:
        print 'AE or CB VISIBLE'
    else:
        print 'NONE'

storeCond = cond()

-- 
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to