Maya Command completion and properties????

38 views
Skip to first unread message

Mark Jackson

unread,
Jun 2, 2016, 12:04:31 PM6/2/16
to python_inside_maya
Hi all, 


I posted this link way back in 2011 and forgot all about it, but now this issue has popped up again and I wondered if anybody could shed light on it, or is it just a Maya script editor quirk? ....

The problem is when you have properties bound to a class and use Maya's code completion in the script editor,. that completion is actually running all the properties bound to that class the minute you go "." 

class AutoCompleteTest(object):

    def __init__(self):
        pass

    @property
    def Test(self):
        print "Im being CALLED Multiple times!!!!!\n" 
        
        a=AutoCompleteTest()
a......... 


I have a big P4 file object class with a ton of calls bound as properties, things like fstat, sync etc... but because of this behavior maya's script editor, completion grinds to a halt anytime you try dot completing the class object. I'm figuring I may just roll all the calls back to getters/setters but wondered it there was any magic fix I'm not aware of..

cheers

Mark


-------------------------------------
Mark Jackson
CEO / Technical Director
red9consultancy.com

Justin Israel

unread,
Jun 2, 2016, 3:28:22 PM6/2/16
to python_inside_maya

I just always turned of completion in the script editor because it gave me problems. Didn't know this was the reason. Maybe switch to MayaSublime? ;-)


--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FG%3DL_g2UKeoQUb0YRMQU%2Bh66HGBYHNMTgGbm53TmHqx%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages