Example #1
0
def get_override_current_frame_from_collection(col):
    node = col.get_node()
    ensure_override_current_frame_attr_exists(col)
    value = mmapi.get_value_on_node_attr(node,
                                         const.OVERRIDE_CURRENT_FRAME_ATTR)
    assert isinstance(value, bool)
    return value
Example #2
0
def get_object_toggle_bundle_from_collection(col):
    """
    Get the value of 'Objects Toggle Bundle', from a Collection.

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

    :returns: True or False.
    :rtype: bool
    """
    node = col.get_node()
    ensure_object_toggle_bundle_attr_exists(col)
    value = mmapi.get_value_on_node_attr(node, const.OBJECT_TOGGLE_BUNDLE_ATTR)
    assert isinstance(value, bool)
    return value
Example #3
0
def get_override_current_frame_from_collection(col):
    """
    Get the value of 'Override Current Frame', from a Collection.

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

    :returns: True or False.
    :rtype: bool
    """
    node = col.get_node()
    ensure_override_current_frame_attr_exists(col)
    value = mmapi.get_value_on_node_attr(node,
                                         const.OVERRIDE_CURRENT_FRAME_ATTR)
    assert isinstance(value, bool)
    return value