Changeset 6499 for vmdshow/branches
- Timestamp:
- Aug 25, 2016, 2:01:53 PM (8 years ago)
- Location:
- vmdshow/branches/0.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vmdshow/branches/0.1
- Property svn:mergeinfo changed
/vmdshow/trunk merged: 6498
- Property svn:mergeinfo changed
-
vmdshow/branches/0.1/vmdserver.tcl
r6430 r6499 11 11 12 12 # The VMD TCL interpreter is by default interactive. Turn this off 13 # so that unknown commands like "scene" don't get exec-ed. 13 # so that unknown commands like "scene" don't get exec-ed. 14 14 set ::tcl_interactive 0 15 15 … … 47 47 set DisplayProps(options) "" 48 48 foreach key { 49 ambientocclusion antialias aoambient aodirect 49 ambientocclusion 50 antialias 51 aoambient 52 aodirect 50 53 backgroundgradient 51 culling cuestart cueend cuedensity cuemode 52 depthcue distance 54 cuedensity 55 cueend 56 cuemode 57 cuestart 58 culling 59 depthcue 60 distance 53 61 eyesep 54 farclip focallength 62 farclip 63 focallength 55 64 height 56 65 nearclip 57 66 projection 58 shadows stereo 67 shadows 68 stereo 59 69 } { 60 70 if {$key eq "nearclip" || $key eq "farclip"} { … … 458 468 459 469 set slot 0 470 set op "badOp" 460 471 foreach file $fileList { 461 472 if {[regexp {^@name:(.+)} $file match name]} { … … 471 482 mol $op $file waitfor all 472 483 if { ![info exists name] } { 473 puts stderr "can't find name f ile=$file"484 puts stderr "can't find name for file: \"$file\"" 474 485 } 475 486 if {$op eq "new"} { … … 502 513 # defines the script that loads a scene called <id>. The "show" 503 514 # operation executes that script to show the scene. The "clear" 504 # operation clears the current scene (usually in preparation for 515 # operation clears the current scene (usually in preparation for 505 516 # showing another scene). The "forget" operation erases one or more 506 517 # scene definitions; if no ids are specified, then all scenes are … … 555 566 556 567 if {[catch {$parser eval $Scenes($id)} result]} { 557 error "$result\nwhile loading scene \"$id\"" 568 global errorInfo 569 error "$errorInfo\n$result\nwhile loading scene \"$id\"" 558 570 } 559 571 … … 857 869 proc cmd_atomselect {args} { 858 870 global parser 859 860 foreach arg $args { 871 872 foreach arg $args { 861 873 if { $arg == "writepdb" } { 862 874 error "autoselect \"writepdb\" option is disallowed" … … 864 876 } 865 877 set cmd [eval atomselect $args] 866 $parser alias $cmd $cmd878 catch { $parser alias $cmd $cmd } 867 879 return $cmd 868 880 } 869 881 870 882 $parser alias atomselect cmd_atomselect 871 883 … … 906 918 907 919 proc server_handle {cin cout} { 908 global parser buffer client 920 global parser buffer client 909 921 910 922 if {[gets $cin line] < 0} { … … 966 978 catch {close $cin} 967 979 catch {exit $code} 968 980 969 981 } 970 982 … … 1057 1069 1058 1070 proc server_set_temporary_directory { path } { 1059 global tmpDir 1071 global tmpDir 1060 1072 1061 1073 set tmpDir $path … … 1100 1112 # The VMD TCL interpreter is by default interactive. Their version 1101 1113 # of tkconsole always turns this on. Turn this off 1102 # so that unknown commands like "scene" don't get exec-ed. 1114 # so that unknown commands like "scene" don't get exec-ed. 1103 1115 set ::tcl_interactive 0
Note: See TracChangeset
for help on using the changeset viewer.