Discovering Functionality#

You can pick up much of Paya just browsing for methods. The Types appendix is a good starting point. To get the same information contextually within Maya, call help() on any Paya class:

import paya.runtime as r

with r:
    transform = r.group(empty=True)
    transformClass = type(transform)
    help(transformClass)

To look for a method based on a hunch, use dir() instead:

with r:
    for name in dir(transformClass):
        if 'offset' in name.lower():
            print(name)

    # Result: createOffsetGroups

After you’ve snooped around for a while, visit Idioms for workflow ideas.