Skip to content

Collection of Maya functions/tools/scripts/helpers/examples.

License

Notifications You must be signed in to change notification settings

DreamWall-Animation/dwmaya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

dwmaya

Collection of Maya functions/tools/scripts/helpers/examples.

playblast:

Uses a temporary floating viewport to avoid messing with your UI and to make sure the correct camera is used.
Also works in batch mode (mayapy).

dwmaya.playblast.playblast(camera='')

shelf:

Create shelf menu in python. Handy to create non-destructible shelf from userSetup.py and also re-use common part of buttons in multiple shelf tabs.

dwmaya.ui.shelf.create(
    name='example',
    shelf_buttons=[
        dict(
            tooltip="farm_launcher",
            icon="farm_launcher.png",
            command='print("test")'),
        dwmaya.ui.shelf.SEPARATOR,
        dict(
            tooltip="left click menu",
            icon="cube.png",
            command='import maya.cmds as mc;mc.polyCube()',
            menu_button=dwmaya.ui.shelf.RIGHT_BUTTON,
            menu=[
                dict(label='first menu item',
                     command='polyCube',
                     source_type='mel'),
                dict(label='another menu item',
                     command='polyCube',
                     source_type='mel'),
            ]
        )
    ]
)

About

Collection of Maya functions/tools/scripts/helpers/examples.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages