Very helpful, thank you very much Tom !

All the best

Enrico

Il giorno ven 5 apr 2024 alle ore 21:24 Tom Goddard <goddard@sonic.net> ha scritto:
The time to play an MD movie with molecular surfaces is going to be dominated by the surface calculation time, and it will make no difference how transparency is applied.  Propagating per-atom transparency as the surface is recomputed will probably never be implemented due to lack of resources.

Tom


On Apr 5, 2024, at 2:39 AM, Enrico Martinez <jmsstarlight@gmail.com> wrote:

Thank you very much Tom !

In fact I have tested the perframe method from your previous message but it was much slower compared to the more direct way of the surface recording mentioned in my first message. I just wondered whether it could be fixed (to apply transparency on different layers in future builds of the Chimera-X...

Yours with thanks

Enrico

Il giorno ven 5 apr 2024 alle ore 03:10 Tom Goddard <goddard@sonic.net> ha scritto:
Regarding question #2, we have discussed this multiple times on the mailing list with you.  Let me summarize those previous discussions.  When molecular surfaces are recomputed during an MD trajectory playback the transparency is not copied when different transparency levels are used for different atoms and you will need to use a perframe script to set the transparency each time after the molecular surface is computed (which is tricky to do because automatic molecular surface computation is done after perframe commands, so see the previous mailing list messages for the tricks needed to achieve this, basically you have to close the surface and manually create it at each frame).

        Tom


> On Apr 4, 2024, at 7:59 AM, Enrico Martinez via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
>
> Dear ChimeraX users!
>
> I am performing visualization of a molecular dynamics trajectory containing a membrane system. I have two questions about surface representation.
>
> 1- I've found that the quality of the surface could be mainly controlled using two options
> gridSpacing and probeRadius
> so that decreasing the both usually produces better results. Are there other relevant parameters that could improve the quality of the surface ?
>
> 2- Setting different degrees of transparency of different selections.
> In the case when the lipids in the modelled membrane are splitted into two parts (according to the amber force field) I tried to colour the heads and tails differently setting different degree of transparency, using
>
> # first color the entire membrane in blue
> color ~protein blue surface transparency 40
> # color only the headgroups in red  setting less transparency
> color :PC red surface transparency 80
>
> This looks as expected only in the current frame. However, when I start to play a trajectory using coordset, the both selections become equally transparent (setting to 40). Is it possible to control this in a more flexible way ?
>
> Thank you very much in advance
>
> Best regards
>
> Enrico
>
> _______________________________________________
> ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
> To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
> Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/