Changeset 2390


Ignore:
Timestamp:
Aug 16, 2011, 3:50:37 PM (13 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/nanovisviewer.tcl

    r2353 r2390  
    914914        SendCmd "cutplane state $_settings($this-${axis}cutplane) $axis $vols"
    915915        set pos [expr {0.01*$_settings($this-${axis}cutposition)}]
    916         SendCmd "cutplane position $pos $axis $vols"
     916        set vol [lindex $vols 0]
     917        SendCmd "cutplane position $pos $axis $vol"
    917918    }
    918919    SendCmd "volume data state $_settings($this-volume) $vols"
     
    12231224            if { [isconnected] } {
    12241225                set vols [CurrentVolumes -cutplanes]
    1225  puts stderr "cutplanes=$cutplanes"
    1226                 SendCmd "cutplane state $bool $axis $vols"
     1226                set vol [lindex $vols 0]
     1227                SendCmd "cutplane state $bool $axis $vol"
    12271228            }
    12281229            if { $bool } {
     
    18841885            set newpos [expr {0.01*$newval}]
    18851886            set vols [CurrentVolumes -cutplanes]
    1886             SendCmd "cutplane position $newpos $axis $vols"
     1887            set vol [lindex $vols 0]
     1888            SendCmd "cutplane position $newpos $axis $vol"
    18871889        }
    18881890        default {
Note: See TracChangeset for help on using the changeset viewer.