//javascript

Application.CommandNode("/application/window/new_document").Command("activate", "");
Application.CommandNode("/application/ui").Command("tutorialmessage", "A very fast intro to hierarchies.  We will create a stick-figure with a torso, two legs, and two arms, connecting the limbs to the torso by setting their input_matrix properties.  Re-arrange open windows before continuing ...");
Application.CommandNode("/application/document/window").Command("highlight_plugin", "Cylinder");
Application.CommandNode("/application/document/window/create_object").Command("activate", "");
Application.CommandNode("/application/document/Cylinder/properties/auto_controls/name").Command("value", "Torso");
Application.CommandNode("/application/document/Torso/properties/auto_controls/radius").Command("value", "0.5");
Application.CommandNode("/application/document/Torso/properties/close").Command("activate", "");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttonstartdrag", "button3 0.255198 0.224181 0.255198 0.224181 0.255198 0.224181");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.255198 0.229219 0.255198 0.224181 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.255198 0.234257 0.255198 0.229219 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.255198 0.239295 0.255198 0.234257 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.255198 0.24937 0.255198 0.239295 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.255198 0.259446 0.255198 0.24937 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.255198 0.264484 0.255198 0.259446 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.255198 0.274559 0.255198 0.264484 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.255198 0.279597 0.255198 0.274559 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.253308 0.289673 0.255198 0.279597 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.253308 0.29471 0.253308 0.289673 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.253308 0.299748 0.253308 0.29471 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.253308 0.304786 0.253308 0.299748 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.251418 0.312343 0.253308 0.304786 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.251418 0.31738 0.251418 0.312343 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.251418 0.322418 0.251418 0.31738 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.251418 0.327456 0.251418 0.322418 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.249527 0.335013 0.251418 0.327456 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.249527 0.34005 0.249527 0.335013 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.247637 0.347607 0.249527 0.34005 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.247637 0.350126 0.247637 0.347607 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.247637 0.355164 0.247637 0.350126 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.245747 0.36272 0.247637 0.355164 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.243856 0.370277 0.245747 0.36272 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.243856 0.372796 0.243856 0.370277 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.243856 0.377834 0.243856 0.372796 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.241966 0.380353 0.243856 0.377834 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.241966 0.382872 0.241966 0.380353 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.240076 0.390428 0.241966 0.382872 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.240076 0.392947 0.240076 0.390428 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.240076 0.395466 0.240076 0.392947 0.255198 0.211587");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttonenddrag", "none 0.240076 0.395466 0.240076 0.392947 0.255198 0.211587");
Application.CommandNode("/application/document/window/create_object").Command("activate", "");
Application.CommandNode("/application/document/Cylinder/properties/auto_controls/name").Command("value", "Right Leg");
Application.CommandNode("/application/document/Right Leg/properties/auto_controls/input_matrix_property").Command("activate", "");
Application.CommandNode("/application/document/Right Leg/properties/auto_controls/input_matrix_property/context_set_connection").Command("activate", "");
Application.CommandNode("/application/document/connect_properties/source_object").Command("selectobject", "Torso");
Application.CommandNode("/application/document/connect_properties/source_property_chooser").Command("selectproperty", "output_matrix");
Application.CommandNode("/application/document/connect_properties/connect").Command("activate", "");
Application.CommandNode("/application/document/connect_properties/close").Command("activate", "");
Application.CommandNode("/application/document/Right Leg/properties/auto_controls/radius").Command("value", "0.4");
Application.CommandNode("/application/document/Right Leg/properties/auto_controls/position_control/z").Command("value", "-5");
Application.CommandNode("/application/document/Right Leg/properties/auto_controls/orientation_control/y").Command("value", "30");
Application.CommandNode("/application/document/Right Leg/properties/auto_controls/zmax").Command("value", "0");
Application.CommandNode("/application/document/Right Leg/properties/close").Command("activate", "");
Application.CommandNode("/application/document/window/create_object").Command("activate", "");
Application.CommandNode("/application/document/Cylinder/properties/auto_controls/name").Command("value", "Left Leg");
Application.CommandNode("/application/document/Left Leg/properties/auto_controls/input_matrix_property").Command("activate", "");
Application.CommandNode("/application/document/Left Leg/properties/auto_controls/input_matrix_property/context_set_connection").Command("activate", "");
Application.CommandNode("/application/document/connect_properties/source_object").Command("selectobject", "Torso");
Application.CommandNode("/application/document/connect_properties/source_property_chooser").Command("selectproperty", "output_matrix");
Application.CommandNode("/application/document/connect_properties/connect").Command("activate", "");
Application.CommandNode("/application/document/connect_properties/close").Command("activate", "");
Application.CommandNode("/application/document/Left Leg/properties/auto_controls/radius").Command("value", "0.4");
Application.CommandNode("/application/document/Left Leg/properties/auto_controls/zmax").Command("value", "0");
Application.CommandNode("/application/document/Left Leg/properties/auto_controls/position_control/z").Command("value", "-5");
Application.CommandNode("/application/document/Left Leg/properties/auto_controls/orientation_control/y").Command("value", "-30");
Application.CommandNode("/application/document/Left Leg/properties/close").Command("activate", "");
Application.CommandNode("/application/document/window/create_object").Command("activate", "");
Application.CommandNode("/application/document/Cylinder/properties/auto_controls/name").Command("value", "Left Arm");
Application.CommandNode("/application/document/Left Arm/properties/auto_controls/input_matrix_property").Command("activate", "");
Application.CommandNode("/application/document/Left Arm/properties/auto_controls/input_matrix_property/context_set_connection").Command("activate", "");
Application.CommandNode("/application/document/connect_properties/source_object").Command("selectobject", "Torso");
Application.CommandNode("/application/document/connect_properties/source_property_chooser").Command("selectproperty", "output_matrix");
Application.CommandNode("/application/document/connect_properties/connect").Command("activate", "");
Application.CommandNode("/application/document/connect_properties/close").Command("activate", "");
Application.CommandNode("/application/document/Left Arm/properties/auto_controls/radius").Command("value", "0.4");
Application.CommandNode("/application/document/Left Arm/properties/auto_controls/orientation_control/y").Command("value", "45");
Application.CommandNode("/application/document/Left Arm/properties/auto_controls/zmin").Command("value", "0");
Application.CommandNode("/application/document/Left Arm/properties/close").Command("activate", "");
Application.CommandNode("/application/document/window/create_object").Command("activate", "");
Application.CommandNode("/application/document/Cylinder/properties/auto_controls/name").Command("value", "Right Arm");
Application.CommandNode("/application/document/Right Arm/properties/auto_controls/input_matrix_property").Command("activate", "");
Application.CommandNode("/application/document/Right Arm/properties/auto_controls/input_matrix_property/context_set_connection").Command("activate", "");
Application.CommandNode("/application/document/connect_properties/source_object").Command("selectobject", "Torso");
Application.CommandNode("/application/document/connect_properties/source_property_chooser").Command("selectproperty", "output_matrix");
Application.CommandNode("/application/document/connect_properties/connect").Command("activate", "");
Application.CommandNode("/application/document/connect_properties/close").Command("activate", "");
Application.CommandNode("/application/document/Right Arm/properties/auto_controls/radius").Command("value", "0.4");
Application.CommandNode("/application/document/Right Arm/properties/auto_controls/orientation_control/y").Command("value", "-45");
Application.CommandNode("/application/document/Right Arm/properties/auto_controls/zmin").Command("value", "0");
Application.CommandNode("/application/document/Right Arm/properties/close").Command("activate", "");
Application.CommandNode("/application/document/window/dag").Command("context_menu", "Torso");
Application.CommandNode("/application/document/window/dag/context_edit_object").Command("activate", "");
Application.CommandNode("/application/document/Torso/properties/auto_controls/orientation_control/x").Command("value", "-90");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttonstartdrag", "button3 0.277883 0.79597 0.277883 0.79597 0.277883 0.79597");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.26276 0.753149 0.277883 0.79597 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.26276 0.753149 0.26276 0.753149 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.247637 0.697733 0.26276 0.753149 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.247637 0.697733 0.247637 0.697733 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.240076 0.654912 0.247637 0.697733 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.240076 0.654912 0.240076 0.654912 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.234405 0.644836 0.240076 0.654912 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.232514 0.627204 0.234405 0.644836 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.230624 0.612091 0.232514 0.627204 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.223062 0.576826 0.230624 0.612091 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.223062 0.576826 0.223062 0.576826 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.215501 0.541562 0.223062 0.576826 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.215501 0.541562 0.215501 0.541562 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.20794 0.506297 0.215501 0.541562 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.20794 0.506297 0.20794 0.506297 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.204159 0.481108 0.20794 0.506297 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.204159 0.481108 0.204159 0.481108 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.200378 0.471033 0.204159 0.481108 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.200378 0.471033 0.200378 0.471033 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.198488 0.463476 0.200378 0.471033 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.196597 0.460957 0.198488 0.463476 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.196597 0.458438 0.196597 0.460957 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.194707 0.458438 0.196597 0.458438 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.187146 0.458438 0.194707 0.458438 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.175803 0.458438 0.187146 0.458438 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.175803 0.458438 0.175803 0.458438 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.160681 0.460957 0.175803 0.458438 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.160681 0.460957 0.160681 0.460957 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.153119 0.463476 0.160681 0.460957 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.153119 0.463476 0.153119 0.463476 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.145558 0.468514 0.153119 0.463476 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.145558 0.468514 0.145558 0.468514 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.137996 0.473552 0.145558 0.468514 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.137996 0.473552 0.137996 0.473552 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.136106 0.476071 0.137996 0.473552 0.279773 0.806045");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttonenddrag", "none 0.136106 0.476071 0.137996 0.473552 0.279773 0.806045");
Application.CommandNode("/application/document/Torso/properties/auto_controls/orientation_control/y").Command("value", "40");
Application.CommandNode("/application/document/Torso/properties/auto_controls/orientation_control/y").Command("value", "-30");
Application.CommandNode("/application/document/Torso/properties/close").Command("activate", "");
Application.CommandNode("/application/document/window/dag").Command("context_menu", "Right Leg");
Application.CommandNode("/application/document/window/dag/context_edit_object").Command("activate", "");
Application.CommandNode("/application/document/Right Leg/properties/auto_controls/orientation_control/x").Command("value", "30");
Application.CommandNode("/application/document/Right Leg/properties/auto_controls/orientation_control/x").Command("value", "-30");
Application.CommandNode("/application/document/Right Leg/properties/close").Command("activate", "");
Application.CommandNode("/application/ui").Command("tutorialmessage", "That's all, folks!");
