From: Nuno R. L. Ferreira (nunolf_at_ci.uc.pt)
Date: Thu Jan 12 2006 - 10:49:05 CST

Hi *

The command transoffset is giving me an error in the following script, when
I call the translate proc, given below. The error is :"atomselection move::
non-numeric in matrix".

If I explicitly define the vars a, b & c in the transoffset command, like:
$sel move [transoffset { 0 64 0 } ], it works.
It seems that when the substitution of the vars a, b & c is done inside
transoffset { $a $b $c } , there's a problem.
Any hint about this one?

Regards,
Nuno

-----------------------------------------------------

proc translate { molid axis trans } {
  set sel [atomselect $molid "all"]
  if {$axis == "x"} {set a $trans; set b 0; set c 0}
  if {$axis == "y"} {set a 0; set b $trans; set c 0}
  if {$axis == "z"} {set a 0; set b 0; set c $trans}
  #puts "a = $a; b = $b; c = $c"
  $sel move [transoffset { $a $b $c } ]
  }

translate $molid y 64

------------------------------------------------------

######################################
Nuno Ricardo Santos Loureiro da Silva Ferreira
Departamento de Química
Faculdade de Ciências e Tecnologia
Universidade de Coimbra
3004-535 Coimbra - Portugal
Fax: +351 239 827703 - www.biolchem.qui.uc.pt
########################################

---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0602-2, 11-01-2006
Tested on: 12-01-2006 16:49:06
avast! - copyright (c) 1988-2005 ALWIL Software.
http://www.avast.com