vtool.maya_lib.anim¶
Function Summary
|
bake the animation with nice settings that fix flipping |
|
|
|
Playblast the viewport to the given filename path. |
|
A convenience for create set driven key frames. |
|
Given an node.attribute return input keyframe |
|
Get all keyframes that input into the node. |
|
Get all keyframes that output from the node. |
|
Given a keframe set the in and out infinity to linear. |
- bake_to_animation(nodes, min_time=None, max_time=None)¶
bake the animation with nice settings that fix flipping
- get_min_max_time()¶
- set_min_max_time(min_value, max_value)¶
- playblast(filename)¶
Playblast the viewport to the given filename path.
- Parameters
filename (str) – This should be the path to a quicktime .mov file.
- quick_driven_key(source, target, source_values, target_values, infinite=False, tangent_type='linear')¶
A convenience for create set driven key frames.
- Parameters
source (str) – node.attribute to drive target.
target (str) – node.attribute to be driven by source.
source_values (list) – A list of values at the source.
target_values (list) – A list of values at the target.
infinite (bool) – The bool attribute.
- get_keyframe(node_and_attribute)¶
Given an node.attribute return input keyframe
- get_input_keyframes(node, node_only=True)¶
Get all keyframes that input into the node.
- Args
node (str): The name of a node to check for keyframes. node_only (bool): Whether to return just the keyframe name, or also the keyframe.output attribute.
- Return
list: All of the keyframes connected to the node.
- get_output_keyframes(node)¶
Get all keyframes that output from the node.
- Parameters
node (str) – The name of a node to check for keyframes.
- Return
list: All of the keyframes that the node connects into.
- set_infiinity(keyframe, pre=False, post=False)¶
Given a keframe set the in and out infinity to linear.
- Parameters
keyframe (str) – The name of a keyframe.
pre (bool) – Whether to set pre inifinity to linear.
post (bool) – Whether to set post infinity to linear.
- Return
str: The name of the keyframe.