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: Ayla Khan <>
  • To:
  • Cc: "Jess Tate" <>
  • Subject: Re: [Seg3D] Can the states "display_max / display_min" of CT images be set in the python console?
  • Date: Mon, 23 Mar 2015 14:20:13 -0600

The's a section on the python console in the Basic Functionality manual on the Seg3D software page (under the User Documentation and Tutorials tabs) along with some python examples.

The Seg3D repository builds on OS X 10.10 with the latest Xcode. The v2.1.5 OS X binary on the Seg3D download page will also run on OS X 10.10.


On Mar 20, 2015, at 7:53 AM, cb wrote:

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" <> wrote:

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.:
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.


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:
where s40_full is the name of the CT image series.

Archive powered by MHonArc 2.6.18.

Top of page