#console on #set debugscript # RENDER AND COLOR INITIAL VIEW. # Typically, you will use view01.spt do to this. # Then clicking the "View 1" button will replay view01.spt, but not initial-view.spt. script ../scripts4all/heme1.spt # Subsequent commands will be played only when the chapter first loads, # or when the "Replay/Reset Initial View" button is clicked. # Therefore they are present in initial-view.spt, but not in view01.spt. # OPTIONALLY, HAVE MOLECULE ROTATE AND ZOOM INTO VIEW # These 3 lines prepare the molecule to roll and zoom into view. # Remove the # (comment) marks to activate these commands. rotate z 170 rotate y 90 zoom 15 delay 0.3 # Now, use "show orientation" to generate a "moveto" command, and copy it here for the final orientation and zoom. moveto /* time, axisAngle */ 1.0 {0 0 1 0} /* zoom, translation */ 100.0 0.0 0.0 /* center, rotationRadius */ {10.878000000000002 13.011000000000001 40.310500000000005} 39.85233690417928 /* navigation center, translation, depth */ {0 0 0} 0 0 0 /* cameraDepth, cameraX, cameraY */ 3.0 0.0 0.0; # After the moveto, pause for a moment before spinning may start. delay 0.3 # ECHO "CLICK AND DRAG TO ROTATE MOLECULE" message echo-drag2rotate # END of initial-view.spt.