@publisher(
    LOOK_DEV_TYPES + ['layout', 'model', 'vegetation', 'scene assembly'],
    publisher_type=POST_PUBLISHER_TYPE
)
def create_representations():
    from anima.env import mayaEnv
    m_env = mayaEnv.Maya()
    v = m_env.get_current_version()

    if not v:
        return

    if Representation.repr_separator in v.take_name:
        return

    # skip if it is a Character
    skip_types = ['character', 'animation', 'previs', 'vehicle']
    for t in v.naming_parents:
        for st in skip_types:
            if t.type and t.type.name.lower().startswith(st):
                return

    from anima.env.mayaEnv import repr_tools
    gen = repr_tools.RepresentationGenerator(version=v)
    gen.generate_all()

    # re-open the original scene
    m_env = mayaEnv.Maya()
    current_version = m_env.get_current_version()

    if current_version != v:
        m_env.open(v, force=True, skip_update_check=True)
creates the representations of the scene
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/publish.py/create_representations