Exemplo n.º 1
0
def set_override_current_frame_on_collection(col, value):
    ensure_override_current_frame_attr_exists(col)
    node = col.get_node()
    assert isinstance(value, bool)
    mmapi.set_value_on_node_attr(node, const.OVERRIDE_CURRENT_FRAME_ATTR,
                                 value)
    return
Exemplo n.º 2
0
def set_object_toggle_bundle_on_collection(col, value):
    """
    Set the value of 'Objects Toggle Bundle' on a Collection.

    :param col: The Collection to change.
    :type col: Collection

    :param value: Value to set to.
    :type value: bool
    """
    assert isinstance(value, bool)
    ensure_object_toggle_bundle_attr_exists(col)
    node = col.get_node()
    mmapi.set_value_on_node_attr(node, const.OBJECT_TOGGLE_BUNDLE_ATTR, value)
    return
Exemplo n.º 3
0
def set_override_current_frame_on_collection(col, value):
    """
    Set the value of 'Override Current Frame' on a Collection.

    :param col: The Collection to change.
    :type col: Collection

    :param value: Value to set to.
    :type value: bool
    """
    assert isinstance(value, bool)
    ensure_override_current_frame_attr_exists(col)
    node = col.get_node()
    mmapi.set_value_on_node_attr(node, const.OVERRIDE_CURRENT_FRAME_ATTR,
                                 value)
    return