//javascript

Application.CommandNode("/application/ui").Command("tutorialmessage", "Basic Subdivision Surface (SDS) tutorial.");
Application.CommandNode("/application/window/new_document").Command("activate", "");
Application.CommandNode("/application/document/window").Command("highlight_plugin", "PolyCube");
Application.CommandNode("/application/document/window/create_object").Command("activate", "");
Application.CommandNode("/application/document/PolyCube/properties/close").Command("activate", "");
Application.CommandNode("/application/document/window/dag").Command("context_menu", "PolyCube Instance");
Application.CommandNode("/application/document/window/dag/context_filter_mesh_MakeSDS").Command("activate", "");
Application.CommandNode("/application/ui").Command("tutorialmessage", "The MakeSDS filter turns a normal mesh into an SDS mesh. This means the preview is activated and the renderman engine will render the mesh as SDS.");
Application.CommandNode("/application/ui").Command("tutorialmessage", "The cage can be edited using the standard tools, with realtime updating of the preview.");
Application.CommandNode("/application/document/CameraViewport/viewport_window/select_points").Command("toggle", "");
Application.CommandNode("/application/document/CameraViewport/viewport_window/select_objects").Command("toggle", "");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondown", "shift+button1 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttonstartdrag", "shift+button1 0.623333 0.38 0.623333 0.38 0.623333 0.38");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.616667 0.397778 0.623333 0.38 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.606667 0.422222 0.616667 0.397778 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.596667 0.451111 0.606667 0.422222 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.588333 0.475556 0.596667 0.451111 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.581667 0.495556 0.588333 0.475556 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.578333 0.513333 0.581667 0.495556 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.575 0.526667 0.578333 0.513333 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.573333 0.535556 0.575 0.526667 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.571667 0.537778 0.573333 0.535556 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.571667 0.54 0.571667 0.537778 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.571667 0.544444 0.571667 0.54 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.571667 0.546667 0.571667 0.544444 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.571667 0.548889 0.571667 0.546667 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.57 0.551111 0.571667 0.548889 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.57 0.553333 0.57 0.551111 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.57 0.557778 0.57 0.553333 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.566667 0.557778 0.57 0.557778 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.566667 0.562222 0.566667 0.557778 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.563333 0.562222 0.566667 0.562222 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.563333 0.564444 0.563333 0.562222 0.63 0.371111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttonenddrag", "shift 0.563333 0.564444 0.563333 0.562222 0.63 0.371111");
Application.CommandNode("/application/document/window/dag").Command("context_menu", "PolyCube Instance");
Application.CommandNode("/application/document/window/dag/context_alter_mesh_RotatePoints").Command("activate", "");
Application.CommandNode("/application/document/RotatePoints/properties/auto_controls/x").Command("value", "45");
Application.CommandNode("/application/document/RotatePoints/properties/auto_controls/z").Command("value", "45");
Application.CommandNode("/application/document/RotatePoints/properties/ok").Command("activate", "");
Application.CommandNode("/application/ui").Command("tutorialmessage", "Next we add some detail, using the CatmullClark tool. This tool will subdivide selected faces only.");
Application.CommandNode("/application/document/CameraViewport/viewport_window/select_faces").Command("toggle", "");
Application.CommandNode("/application/document/CameraViewport/viewport_window/select_points").Command("toggle", "");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondown", "button1 0.47 0.524444");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttonclick", "none 0.47 0.526667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control/context_alter_mesh_CatmullClark").Command("activate", "");
Application.CommandNode("/application/document/CatmullClark/properties/auto_controls/levels").Command("value", "2");
Application.CommandNode("/application/document/CatmullClark/properties/ok").Command("activate", "");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondown", "button1 0.613333 0.56");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttonstartdrag", "button2 0.551667 0.735556 0.551667 0.735556 0.551667 0.735556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.551667 0.717778 0.551667 0.735556 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.553333 0.693333 0.551667 0.717778 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.558333 0.668889 0.553333 0.693333 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.563333 0.637778 0.558333 0.668889 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.566667 0.604444 0.563333 0.637778 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.568333 0.568889 0.566667 0.604444 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.568333 0.528889 0.568333 0.568889 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.57 0.493333 0.568333 0.528889 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.571667 0.471111 0.57 0.493333 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.571667 0.457778 0.571667 0.471111 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.571667 0.448889 0.571667 0.457778 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.573333 0.444444 0.571667 0.448889 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.573333 0.437778 0.573333 0.444444 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.573333 0.426667 0.573333 0.437778 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.575 0.415556 0.573333 0.426667 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.575 0.4 0.575 0.415556 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.578333 0.377778 0.575 0.4 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.578333 0.357778 0.578333 0.377778 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.58 0.34 0.578333 0.357778 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.58 0.324444 0.58 0.34 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.58 0.311111 0.58 0.324444 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.581667 0.3 0.58 0.311111 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.581667 0.286667 0.581667 0.3 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.583333 0.273333 0.581667 0.286667 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.583333 0.255556 0.583333 0.273333 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.586667 0.24 0.583333 0.255556 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.586667 0.22 0.586667 0.24 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.586667 0.202222 0.586667 0.22 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.588333 0.188889 0.586667 0.202222 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.588333 0.177778 0.588333 0.188889 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.588333 0.173333 0.588333 0.177778 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.588333 0.168889 0.588333 0.173333 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.588333 0.164444 0.588333 0.168889 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttondrag", "button2 0.588333 0.16 0.588333 0.164444 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("mbuttonenddrag", "none 0.588333 0.16 0.588333 0.164444 0.551667 0.751111");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttonstartdrag", "button3 0.505 0.664444 0.505 0.664444 0.505 0.664444");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.511667 0.662222 0.505 0.664444 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.515 0.66 0.511667 0.662222 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.521667 0.655556 0.515 0.66 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.528333 0.648889 0.521667 0.655556 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.536667 0.644444 0.528333 0.648889 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.545 0.635556 0.536667 0.644444 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.553333 0.631111 0.545 0.635556 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.563333 0.626667 0.553333 0.631111 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.571667 0.622222 0.563333 0.626667 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.578333 0.615556 0.571667 0.622222 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.581667 0.613333 0.578333 0.615556 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.585 0.611111 0.581667 0.613333 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.588333 0.606667 0.585 0.611111 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.591667 0.604444 0.588333 0.606667 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.591667 0.602222 0.591667 0.604444 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttondrag", "button3 0.593333 0.602222 0.591667 0.602222 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttonenddrag", "none 0.593333 0.602222 0.591667 0.602222 0.498333 0.666667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/select_faces").Command("toggle", "");
Application.CommandNode("/application/document/CameraViewport/viewport_window/select_points").Command("toggle", "");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondown", "button1 0.521667 0.562222");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondown", "shift+button1 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttonstartdrag", "shift+button1 0.48 0.526667 0.48 0.526667 0.48 0.526667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.491667 0.52 0.48 0.526667 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.501667 0.511111 0.491667 0.52 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.51 0.506667 0.501667 0.511111 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.515 0.502222 0.51 0.506667 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.518333 0.495556 0.515 0.502222 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.521667 0.493333 0.518333 0.495556 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.521667 0.491111 0.521667 0.493333 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.521667 0.488889 0.521667 0.491111 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttondrag", "shift+button1 0.523333 0.484444 0.521667 0.488889 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("lbuttonenddrag", "shift 0.523333 0.484444 0.521667 0.488889 0.471667 0.535556");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control").Command("rbuttonclick", "none 0.496667 0.506667");
Application.CommandNode("/application/document/CameraViewport/viewport_window/viewport_control/context_alter_mesh_TranslatePoints").Command("activate", "");
Application.CommandNode("/application/document/TranslatePoints/properties/auto_controls/x").Command("value", "-5.4");
Application.CommandNode("/application/document/TranslatePoints/properties/ok").Command("activate", "");
Application.CommandNode("/application/ui").Command("tutorialmessage", "Now let's see what the result looks like in the renderman output.");
Application.CommandNode("/application/document/CameraViewport/viewport_window/render_preview_button").Command("activate", "");
Application.CommandNode("/application/tutorial_message").Command("close", "");
Application.CommandNode("/application/document/window/file_close").Command("activate", "");
Application.CommandNode("/application/window/help_tutorials").Command("activate", "");
