Login
or
Register
Apr 26, 2013

Maya Viewport Display Toggles

Tool for toggling nurbsCurves, geometry, etc in the viewport.

How to Use

Download

http://eblabs.com/eblabs/wp-content/uploads/2013/04/ebLabs_displayToggle1.zip

Setup

Make sure to save this to your scripts folder as, “ebLabs_displayToggle.py”. Assign the following python code to a hotkey or shelf buttons:

For Nurbs Curves

For Polygon Geometry

For Locators

For Object Handle Display

For Joints

Feedback

If you’d like to see any other object types added, just let me know.

Code

Sticky
By Eric
Tags in

13 Comments

  1. Grant Says: November 18, 2013 7:04 am

    Handles and joints!

    Reply
  2. Eddie Chew Says: April 7, 2015 10:00 am

    Amazing tools mate, I’ve added it into my workflow. Cheers.

    Reply
  3. Aly Says: January 15, 2016 4:36 pm

    Thank you so much!! Just what I was looking for 🙂

    Reply
  4. Benoit Says: July 4, 2016 6:18 am

    Waw very nice and useful script. Only one thing is missing: a query mode. It could be a thing like ebLabs_displayToggle(nurbsCurves=True, query=True).
    Thanks again

    Reply
    • Eric Says: July 4, 2016 12:28 pm

      Hi Benoit,
      Thanks for the positive feedback! That shouldn’t be too difficult to add, but how would you use a query mode? I mean, how would it be useful?
      Cheers!
      Eric

      Reply
  5. Harrison Says: January 3, 2017 12:16 am

    not sure where I did it wrong in 2017. I couldn’t get it to work. there is no error when I try to run the script. it loads just nothing happens

    Reply
    • Eric Says: January 3, 2017 9:18 am

      Hi,

      Thanks for letting me know! Ill take a look…

      Cheers,

      Eric

      Reply
      • Harrison Says: January 4, 2017 8:04 pm

        stupid me, I figured it out. it worked after I run it as a shelf button/hotkey, was trying to run it directly from the script editor. I guess it couldn’t see which viewport I am selecting.

        thanks!

        Reply
        • Eric Says: January 4, 2017 8:11 pm

          Ah great! I tested it out in 2017 today as well and it was working for me too!

          Cheers.

          Reply
          • Harrison Says: January 4, 2017 8:18 pm

            not sure if I am asking for too much here, I know very little about scripting 🙁

            how much time will it take you if you could add a hide everything toggle and only the nurbs cruves, polygon/surface, ik handle, locator, image planes are on. you know the usual set up for animators.

            I am gonna try and see if I could modify it myself and see if I could get it to work, as well as create a separate window with buttons 😛

            anyway, thanks for the script, really helpful already 🙂

  6. Eric Says: January 4, 2017 10:56 pm

    Hi Harrison,

    Yeah, cool idea. Well the easiest way is to make a command for every viewport option. Then in your shelf button, you can just include whatever toggles you like. Ill get back to you on this…

    Cheers,

    Eric

    Reply

Post a Comment

Your email address will not be published. Required fields are marked *

*

  • eblabs_logo_short Thanks for visiting ebLabs, a technical site from artist Eric Bates focusing on tools for creating Computer Graphics and Animation.
  • Gift Certificates

    • $25 Gift Certificate $25.00
    • $50 Gift Certificate $50.00
    • $100 Gift Certificate $100.00
  • Subscribe to Blog via Email

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.