Quantcast
Channel: Active questions tagged vmd - Stack Overflow
Viewing all articles
Browse latest Browse all 33

TK/TCL console does not run full script, but works with manual input

$
0
0

New programmer here. I have been trying to run my script through Tk console through a VMD program which works when I copy it into tkconsole, however when I source/load my script into tkconsole, it only runs part of the script before stopping and gives me two issues.

The issue I am having are:

  1. it loads up molecules but does not visually display it in the VMD window
  2. it runs most of my script, but gets stuck at the put $total section and feeds me back invalid command name "put"

I am unsure if I have missed a step when sourcing scripts, however when manually pasting in the whole script it seems to work. Wondering if anyone has input. Please see the script below:

mol new ubiquitin.psfmol new pulling.dcdset sel [atomselect top "index 942 963"]set x [measure bond {59 60} frame all]set total 0for {set i 0} {$i <100 } {incr i} {    puts "I inside first loop: $[measure bond {59 60} frame $i]"; set total [expr {$total + [measure bond {59 60} frame $i]}]}put $totalexpr {$total/100} 

Viewing all articles
Browse latest Browse all 33

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>