Avehna,
It appears to me that your solution is to have each checkbox call
only the part of script specific to the relevant piece of protein.
So, all your problem is a scripting one.
> They are several segments, so I will need several
> combinations if I'm using just jmol commands.
No, you shouldn't need combinations. Each checkbox should call code
that only affects its relevant portion of protein.
> the end define the whole jmol command once in dependence on which
> checkbox was picked before.
That is possible, but I think you can avoid that complex solution.
> "jmolSetCheckboxGroup(chkMaster, chkBoxes)"
I don't think this is suitable for your needs.
> problem using this function, I dont know why it seems to me a little
> complicated.
It is, a little bit.
Let's say you want this:
* protein segment 1 is residues 3 to 20
* protein segment 2 is residues 30 to 50
* checkbox 1 will color segment 1 in blue
* checkbox 2 will color segment 2 in red
* unchecked will color in default CPK
This is what you need:
In the loading script, include:
define segment1 3-20; define segment2 30-50;
And for the checkboxes, this:
jmolCheckbox("define temp selected; select segment1; color blue;
select temp;", "define temp selected; select segment1; color cpk;
select temp;", "segment 1")
jmolCheckbox("define temp selected; select segment2; color red;
select temp;", "define temp selected; select segment2; color cpk;
select temp;", "segment 2")
(You can also avoid the initial definition and integrate them in the
script, like
jmolCheckbox("define temp selected; select 3-20; color blue; select
temp;", "define temp selected; select 3-20; color cpk; select
temp;", "segment 1")
)
OK?
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users