Paul,
It's just that you can't mix variables into definitions that way. One
way around the problem is to create the script command first as a
variable, then execute it. Here is what I would do:
var s = "define interieur cell={2 2 2}";
for (var i=1; i<4; i=i+1);
for (var j=1; j<4; j=j+1);
for
Dear Jmolers,
I tried today my first Jmol script implementing loops. The goal here
is to select the atoms of a central cell which are not shared by any
of the neighbouring cells.
Here is my script :
define interieur (cell={2 2 2});
for (var i=1; i<4; i=i+1);
for (var j=1; j<4; j=j+1);
2 matches
Mail list logo