home *** CD-ROM | disk | FTP | other *** search
Wrap
#k3dscript <command node="/document/window/menus/file_new" command="activate" arguments=""/> <command node="/ui" command="tutorial_message" arguments="This tutorial will show you how to work with angles in animations."/> <command node="/ui" command="tutorial_message" arguments="First, we create and animate a Cone using its transformation matrix. This simple procedure only works for small angles."/> <command node="/document/window/toolbar/create/create_PolyCone" command="activate" arguments=""/> <command node="/document/selection_tool" command="context_menu" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.5 0.29058116232464931</mouse></arguments>"/> <command node="/document/context_menu/animate_transformation" command="activate" arguments=""/> <command node="/document/window/toolbar/main/rotate" command="value" arguments="true"/> <command node="/document/rotate_tool" command="mouse_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.53456913827655306 0.43086172344689377</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_down_manipulator_x_axis" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.53456913827655306 0.43086172344689377</mouse></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.53456913827655306 0.43086172344689377</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_start_drag_start_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.53456913827655306 0.43086172344689377</mouse><rotation>0 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54058116232464926 0.42685370741482964</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54058116232464926 0.42685370741482964</mouse><rotation>-0.0488907 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54058116232464926 0.42885771543086171</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54058116232464926 0.42885771543086171</mouse><rotation>-0.0622249 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54208416833667328 0.42885771543086171</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54208416833667328 0.42885771543086171</mouse><rotation>-0.07983 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54208416833667328 0.43086172344689377</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54208416833667328 0.43086172344689377</mouse><rotation>-0.0937681 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54208416833667328 0.43286573146292584</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54208416833667328 0.43286573146292584</mouse><rotation>-0.108202 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54358717434869741 0.43286573146292584</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54358717434869741 0.43286573146292584</mouse><rotation>-0.12552 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54358717434869741 0.43486973947895791</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54358717434869741 0.43486973947895791</mouse><rotation>-0.140546 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54358717434869741 0.43687374749498997</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54358717434869741 0.43687374749498997</mouse><rotation>-0.156097 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54358717434869741 0.43887775551102204</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54358717434869741 0.43887775551102204</mouse><rotation>-0.172191 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54509018036072143 0.43887775551102204</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54509018036072143 0.43887775551102204</mouse><rotation>-0.189131 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54509018036072143 0.4408817635270541</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54509018036072143 0.4408817635270541</mouse><rotation>-0.205799 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54509018036072143 0.44288577154308617</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54509018036072143 0.44288577154308617</mouse><rotation>-0.223031 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54659318637274557 0.44488977955911824</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54659318637274557 0.44488977955911824</mouse><rotation>-0.257153 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54659318637274557 0.4468937875751503</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54659318637274557 0.4468937875751503</mouse><rotation>-0.275497 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54659318637274557 0.44889779559118237</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54659318637274557 0.44889779559118237</mouse><rotation>-0.294435 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54809619238476948 0.45090180360721444</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54809619238476948 0.45090180360721444</mouse><rotation>-0.329367 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54809619238476948 0.4529058116232465</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54809619238476948 0.4529058116232465</mouse><rotation>-0.349368 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="mouse_warp" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54809619238476948 0.45490981963927857</mouse></arguments>"/> <command node="/document/rotate_tool" command="lmb_drag_move" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54809619238476948 0.45490981963927857</mouse><rotation>-0.369973 1 0 0</rotation></arguments>"/> <command node="/document/rotate_tool" command="lmb_end_drag_stop_motion" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.54809619238476948 0.45490981963927857</mouse></arguments>"/> <command node="/document/window/toolbar/main/select" command="value" arguments="true"/> <command node="/document/selection_tool" command="pick_replace" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.10170340681362725 0.26052104208416832</mouse><selection>0 0 0</selection></arguments>"/> <command node="/document/window/node_list" command="select" arguments="<arguments><selection><node>45ce1872 af184b6d b391e136 0dcfe8b5 1</node></selection><context_menu/></arguments>"/> <command node="/document/window/play" command="activate" arguments=""/> <command node="/document/window/rewind" command="activate" arguments=""/> <command node="/ui" command="tutorial_message" arguments="To work with larger angles, we need to explicitely define them using an Orientation node."/> <command node="/document/window/menus/create_Orientation" command="activate" arguments=""/> <command node="/ui" command="tutorial_message" arguments="The Orientation node will be connected so it sits between the existing animation track and the Cone Instance."/> <command node="/document/window/node_properties/input_matrix_property" command="connect_to" arguments="<arguments><node>00347e9b 97486a2b b79e71ab c719354f 1</node><property>output_value</property></arguments>"/> <command node="/document/selection_tool" command="pick_replace" arguments="<arguments><viewport>/document/window/viewport</viewport><mouse>0.47595190380761526 0.56713426853707416</mouse><selection node="PolyCone Instance">4109712896 4110433024 3 1 2 2 0 8 147</selection></arguments>"/> <command node="/document/window/node_properties/input_matrix_property" command="connect_to" arguments="<arguments><node>cf562348 02624035 ae649a84 f42e0b69 1</node><property>output_matrix</property></arguments>"/> <command node="/ui" command="tutorial_message" arguments="Now, we create a new track that animated a Double value and connect it to one of the angles"/> <command node="/document/window/menus/create_AnimationTrackDoubleDouble" command="activate" arguments=""/> <command node="/ui" command="tutorial_message" arguments="We add a linear interpolation to the track, connect its input to a new Scalar Source and its output to the orientation node."/> <command node="/document/window/node_properties/interpolator" command="create" arguments="InterpolatorDoubleDoubleLinear"/> <command node="/document/window/rewind" command="activate" arguments=""/> <command node="/document/window/node_list" command="select" arguments="<arguments><selection><node>a0b9d507 20400293 8f13c393 31d908a8 1</node></selection><context_menu/></arguments>"/> <command node="/document/window/menus/create_ScalarProperty" command="activate" arguments=""/> <command node="/document/window/node_list" command="select" arguments="<arguments><selection><node>00000001 00000000 00000000 00000001 1</node></selection><context_menu/></arguments>"/> <command node="/document/window/node_list" command="select" arguments="<arguments><selection><node>a0b9d507 20400293 8f13c393 31d908a8 1</node></selection><context_menu/></arguments>"/> <command node="/document/window/node_properties/value_input_property" command="connect_to" arguments="<arguments><node>35b28760 0547458f b4e3d324 84ae3545 1</node><property>value</property></arguments>"/> <command node="/document/window/node_list" command="select" arguments="<arguments><selection><node>cf562348 02624035 ae649a84 f42e0b69 1</node></selection><context_menu/></arguments>"/> <command node="/document/window/node_properties/z_property" command="connect_to" arguments="<arguments><node>a0b9d507 20400293 8f13c393 31d908a8 1</node><property>output_value</property></arguments>"/> <command node="/document/window/node_list" command="select" arguments="<arguments><selection><node>a0b9d507 20400293 8f13c393 31d908a8 1</node></selection><context_menu/></arguments>"/> <command node="/document/window/node_properties/time_input_property" command="connect_to" arguments="<arguments><node>1978f1f7 4a864c99 8caf7cfc d2591baf 1</node><property>time</property></arguments>"/> <command node="/document/window/node_list" command="select" arguments="<arguments><selection><node>35b28760 0547458f b4e3d324 84ae3545 1</node></selection><context_menu/></arguments>"/> <command node="/document/window/node_properties/value" command="set_value" arguments="0"/> <command node="/document/window/fast_forward" command="activate" arguments=""/> <command node="/document/window/node_properties/value" command="set_value" arguments="10"/> <command node="/document/window/play" command="activate" arguments=""/> <command node="/document/window/play" command="activate" arguments=""/> <command node="/document/window/play" command="activate" arguments=""/> <command node="/document/window/rewind" command="activate" arguments=""/> <command node="/document/window/play" command="activate" arguments=""/> <command node="/document/window/rewind" command="activate" arguments=""/> <command node="/ui" command="tutorial_message" arguments="That's it! The cone can now rotate about its axis by setting keyframes using the ScalarProperty node."/>