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: cb <cb_changsha@163.com>
  • To: "Jess Tate" <jess@sci.utah.edu>
  • Cc: seg3d@sci.utah.edu
  • Subject: Re:[Seg3D] Can the states "display_max / display_min" of CT images be set in the python console?
  • Date: Fri, 20 Mar 2015 21:53:19 +0800 (CST)


Thanks, It works. In the controller windows, I find many commands which can be used in python console. Is there any document on them?

And can Seg3d be builded in OS X 10.10 / Xcode 6.2 ? 




At 2015-03-19 00:53:22, "Jess Tate" <jess@sci.utah.edu> wrote:
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