[Chimera-users] solid threshold in a python script
Tom Goddard
goddard at sonic.net
Mon Dec 14 14:49:32 PST 2015
Hi Ben,
You can set multiple solid rendering thresholds with the volume command, for example,
vol #0 style solid level .5,0 level 1.5,1
For solid style the level is two numbers, the first being the density map value and the second is from 0 to 1 indicating the brightness (and also opacity). To specify more than one level you repeat the option.
Tom
> On Dec 14, 2015, at 2:13 PM, <benoit.zuber at ana.unibe.ch> <benoit.zuber at ana.unibe.ch> wrote:
>
> Hello
>
> I would like to add several threshold markers for volume solid rendering. I would like to do it in a script. I guess the only way is to do it through a python script.
> I tried modifying the solid_levels and solid_colors attributes of the active volume but I could not find how I can then get the depending volume attributes, such as transfer_function and the gui (both rendered volume and the volume viewer dialog) to be correctly updated. Could anyone please give me a few pointers?
>
> Thanks in advance
> Ben
> --
> Prof. Benoît Zuber
> Institute of Anatomy
> University of Bern
> Baltzerstrasse 2 <x-apple-data-detectors://1>
> Postfach 922 <x-apple-data-detectors://2/0>
> 3000 Bern <x-apple-data-detectors://2/0> 9
> Switzerland
> benoit.zuber at ana.unibe.ch <mailto:benoit.zuber at ana.unibe.ch>
> +41 31 631 84 40 <tel:+41%2031%20631%2084%2040>
> http://www.ana.unibe.ch/research/experimental_morphology/index_eng.html <http://www.ana.unibe.ch/research/experimental_morphology/index_eng.html>
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20151214/1a8c430e/attachment.html>
More information about the Chimera-users
mailing list