#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/reg1.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 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 */ 2.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.