View Full Version : A MEl script to check if Attribute editor is open or not?
daisukem 01-01-2009, 10:24 PM Hello there. I'm looking for a script that checks if the Atrribute editor is open or not with true or false value..
Does anyone know?
Thank you!
|
|
mlefevre
01-02-2009, 08:33 AM
Hey,
Maybe you could use this.
int $foo = `isAttributeEditorVisible`;
print $foo;
Good luck!
-matt
daisukem
01-02-2009, 09:02 AM
That's exactly qhat I needed. Thank you. How come I dont find the command in the help doc :<
Matt, how did you learn this?
cheers.
Hey,
Maybe you could use this.
int $foo = `isAttributeEditorVisible`;
print $foo;
Good luck!
-matt
mlefevre
01-02-2009, 09:51 AM
Hey daisukem,
I opened the script editor, and turned 'Echo All Commands' on. Turning this option on will output most if not all the tasks you carry out in Maya. :)
-matt
daisukem
01-02-2009, 10:39 AM
mmm I had tried that but I never saw the code you told me. :)
What did you do to display the code when 'Echo All Commands' is turned on?
cheers.
Hey daisukem,
I opened the script editor, and turned 'Echo All Commands' on. Turning this option on will output most if not all the tasks you carry out in Maya. :)
-matt
sciLoop
01-02-2009, 01:15 PM
This is not a command but a function.
Look in "isAttributeEditorVisible.mel" in the scripts/startup folder.
...original code owned by autodesk deleted...
tbaypaul
01-02-2009, 06:37 PM
sciLoop, why in the world would you post code you do not own, on the web? Did you not see the 20 lines of copyright in it's header? Ppl with that file on their system can easily find the code they are licensed to use from the file path you provided.
sciLoop
01-02-2009, 06:54 PM
you might be right.
So, the code is deleted.
Check the original scripts, please...
CGTalk Moderation
01-02-2009, 06:54 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.