Edit product

CAD$0+

prPanelCtx - automatically hide controllers, …

# SOURCE

https://gum.co/prPanelCtx

https://github.com/parzival-roethlein/prmaya


# DESCRIPTION

Temporarily sets (Panel > Show > types) while:

- dragging the translate/rotate/scale tools

- timeline dragging

- timeline playback

The purpose is to have a clear view of the deforming geometry.

To customize the context you can use all flags of the MEL command "modelEditor".

Technical: This script creates a scriptJob (SelectionChanged) and an OpenMaya.MConditionMessage (playingBack)


# LINKS

- Demo: https://vimeo.com/pazrot/prPanelCtx

- Making-of: TODO

- Donate: (This was written in my spare time. If you found it useful in Maya or for coding, consider supporting the author)

https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7X4EJ8Z7NUSQW


# INSTALLATION

Copy this file ("prPanelCtx.py") into your ".../maya/scripts" folder.


# USAGE

import prPanelCtx

prPanelCtx.enable(manipulators=False, nurbsCurves=False, locators=False, controllers=False, dimensions=False)

#prPanelCtx.disable()

# Alternatively you can also use a toggle command (toggles between enable and disable)

import prPanelCtx

prPanelCtx.toggle(manipulators=False, nurbsCurves=False, locators=False, controllers=False, dimensions=False)


# USAGE EXAMPLE (this is how I use it)

# - different settings for manipulator dragging and timeline changes

# - run the prPanelCtx.enable(..) command in the userSetup.py file to have it enabled by default

# - have the prPanelCtx.toggle(..) command on a shelf button to temporarily disable prPanelCtx

# in userSetup.py:

import prPanelCtx

prPanelCtx.enable(manipCtxKwargs={'manipulators': False},

playbackCtxKwargs={'nurbsCurves': False, 'locators': False, 'controllers': False, 'dimensions': False, 'deformers': False, 'selectionHiliteDisplay': False})

# in Maya shelf button:

import prPanelCtx

prPanelCtx.toggle(manipCtxKwargs={'manipulators': False},

playbackCtxKwargs={'nurbsCurves': False, 'locators': False, 'controllers': False, 'dimensions': False, 'deformers': False, 'selectionHiliteDisplay': False})

You've purchased this product

See it in your library

View in Library
Sorry, this item is not available in your location.
Sold out, please go back and pick another option.

Name a fair price:

0 ratings

  • Size9.02 KB

Checkout

prPanelCtx - automatically hide controllers, …

Enter your info to complete your purchase

Card

···· ···· ···· 4242
Test card

05/18

Card

Use a different card?

Card

pp paypal

or pay with

We do not keep any of your sensitive credit card information on file with us unless you ask us to after this purchase is complete.

or pay with

Your purchase was successful!

We charged your card and sent you a receipt

    Gumroad Library

    Download from the App Store or text yourself a link to the app

    Good news! Since you already have a Gumroad account, it's also been added to your library.

    Powered by Gumroad