Jmol/PDB file editing with Jmol: Difference between revisions
Eric Martz (talk | contribs) No edit summary |
Eric Martz (talk | contribs) |
||
Line 61: | Line 61: | ||
:<tt>@ # Jmol script. | :<tt>@ # Jmol script. | ||
@ myvar = 12.6 | :@ myvar = 12.6 | ||
@ function f1() | :@ function f1() | ||
@ { | :@ { | ||
@ print _arguments | :@ print _arguments | ||
@ } | :@ } | ||
@ # End Jmol script.</tt> | :@ # End Jmol script.</tt> | ||
After loading the saved PDB or PNGJ file with this in its header, you can drag and drop in a script file that (i) extracts the @ lines into a variable, (ii) removes the leading "@ " from each line, then (iii) executes the variable with "script inline @variable". | After loading the saved PDB or PNGJ file with this in its header, you can drag and drop in a script file that (i) extracts the @ lines into a variable, (ii) removes the leading "@ " from each line, then (iii) executes the variable with "script inline @variable". |