def get_root_nodes():
    root_transform_nodes = []
    for node in pm.ls(dag=1, transforms=1):
        if node.getParent() is None:
            shape = node.getShape()
            if shape:
                if shape.type() not in ['camera']:
                    root_transform_nodes.append(node)
            else:
                root_transform_nodes.append(node)

    return root_transform_nodes
View for resending an email confirmation email.
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/auxiliary.py/get_root_nodes--crossover with--dataset/ETHPy150Open CenterForOpenScience/osf.io/framework/auth/views.py/resend_confirmation