SCI Seg3D Mailing List

Text archives Help


Re: [Seg3D] Can the states "display_max / display_min" of CT images be set in the python console?


Chronological Thread 
  • From: Jess Tate <jess@sci.utah.edu>
  • To: seg3d@sci.utah.edu, cb <cb_changsha@163.com>
  • Subject: Re: [Seg3D] Can the states "display_max / display_min" of CT images be set in the python console?
  • Date: Wed, 18 Mar 2015 10:53:22 -0600

Hi,

Seg3D state variables for layers always begin with the layer id, which will be 'layer_#', with an unsigned integer to as the #.  to fix this code, you have to find the layer id of the layer you want to change, e.g.:
set(stateid='layer_0::display_max',value=200.0)
You can find the layer id by opening the controller window and clicking on the state variables tab.  look for the name in the layer_#::name  variable
Alternatively, if you meant to save the layer id in the variable s40_full, the command would be:
set(stateid=s40_full + '::display_max',value=200.0)
in this case, s40_full would be a variable with a string like this:
s40_full = ['layer_0']
hopefully that helps.

cheers,
Jess



On Mar 18, 2015, at 7:41 AM, cb wrote:


Seg3D is a convenient tool. If I can do most action with python, it will be great.
But I can not set the display_max/min with python codes:
"set(stateid='s40_full::display_max',value=200.0)"
where s40_full is the name of the CT image series.









Archive powered by MHonArc 2.6.18.

Top of page