[Chimera-users] Showing/Hiding/Fading

Elaine Meng meng at cgl.ucsf.edu
Thu Jun 14 09:57:37 PDT 2018


Hi Gustaf,
I did test all my recommendations and assertions (and demonstrated to myself the inability to change transparency of the Coulombic-ESP coloring) so the behavior you report is a mystery to me. However, I did not try splitting/recombining, so that and other details may make the difference.

Maybe you needed more “wait” commands to show the fading, if simply using separate command files helped, but never mind if the problem is solved.
Best,
Elaine
-----
Elaine C. Meng, Ph.D.
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Jun 13, 2018, at 11:23 PM, Gustaf Olsson <gustaf.olsson at lnu.se> wrote:
> 
> Hello Elaine
> 
> Thank your for your reply, you have been a fantastic support and your answers do helt a lot.
> 
> I realised that the “surf” command led to a re-calculation and this was why I was having issues “re-displaying” the surface as intended. Rather than trying to figure out how to do it properly, I just went back and used the insanely complicated script I had before.
> 
> Two final thought on this matter for this discussion:
> 
> First, using the transparency functions, I was unable to “fade in” several structures when trying to run a “larger” script making the entire movie. Breaking the CMD file into several separate files results in all the “fading” action working properly without any other modifications. This is strange though since I am now getting a bit stretched for time I will not investigate this further.
> 
> Second:
>> The issue is not the syntax ( and “surftransparency” is exactly the same as “transparency” with “,s” after the value so no need to try both) but that the Coulombic-colored surface is in a different coloring mode that does not allow transparency to be adjusted.  It will work fine on surfaces that haven’t been colored to show per-vertex quantities.
>> 
>> If you really want to fade in a surface, I recommend fading it in as a single-color surface and then showing Coulombic coloring after that.  You could actually have two separate surfaces and fade in the non-Coulombic-colored one and then do a rapid switcheroo of hiding that one and showing the already-made Coulombic one.
> 
> This is harder to explain, using my chaotic split/combine and surftransparency combination I was able to create a surface, color it by charge, hiding it using surftransparency and fading it back in using the same. If this should not work then I am at a loss since this is exactly what I did and it works perfectly although the code is a horrible mess. 
> 
> Once I get everything finished I’ll post the video somewhere and send you a link.
> 
> Thank you again and best regards
> // Gustaf
> 
> 
>> On 13 Jun 2018, at 19:48, Elaine Meng <meng at cgl.ucsf.edu> wrote:
>> 
>> Hi Gustaf,
>> 
>>> On Jun 13, 2018, at 12:35 AM, Gustaf Olsson <gustaf.olsson at lnu.se> wrote:
>>> 
>>> So, the commands suggested does work for creating a surface and hiding it though I am right back at not working even when using separate models. I cannot figure out what I am doing wrong here.
>>> 
>>>   surfcat templ #1:17.het
>>>   surf probeRadius 0.5 vertexDensity 20.0 templ; coulombic -5 red 0 white 5 blue templ
>>>   ~surf templ
>>>   surf templ
>>> 
>>> Running this creates a surface, colors it by charge and hides it, though now when I show the surface again it is all white. I understand that i need to re-issue the entire "surf probeRadius 0.5 vertexDensity 20.0 templ; coulombic -5 red 0 white 5 blue templ” command to show the exact same surface with desired colors again though this is not really what I was looking for. Hence, creating the surface, making it 100% transparent and then fading it in would be what I want.
>> 
>> The reason the surface turns white is because it has to be recalculated if you use diffferent probe radius and/or vertex density.  When you first made the surface it was with nondefault probe radius and vertex density.  If you use the same probe radius and vertex density when you show it again (with “surf”) it will not trigger the recalculation and you will still have the Coulombic coloring. I.e., use this to reshow the surface in order to keep the coloring:
>> 
>> ~surf templ
>> surf probeRadius 0.5 vertexDensity 20.0 templ
>> 
>> … or if it’s the only surface of model #0, could hide/show with the following instead:
>> 
>> ~modeldisp #0 & ~ @*
>> modeldisp #0 & ~ @*
>> 
>>> This dis not possible for me since I cannot manipulate the transparency of this surface using either “transparency” or “surfacetransparency” commands. What worked with my “broke” models before does not work at all now. These commands either do nothing or only affects 17.het structure and not the created surface. How do I specify the surface and make it transparent to be able to fade it in again?
>>> 
>>> The single molecule (17.het) is now model #1 and the only structure in that model. I run the command as stated above (using surfcat or just specifying the #1 or #1:17.het all produces the exact same result and issue) and end up with two “model #1”, the structure and the surface. I cannot modify the transparency of the surface at all, none of these commands work:
>>> 
>>>   transp 100,s templ
>>>   transp 100 templ
>>>   transp 100 #1
>>>   transp 100 #1:17.het
>>>   transp 100 :17.het
>>>   surftransparency 100 templ
>>>   surftransparency 100 #1
>>>   surftransparency 100 #1:17.het
>>>   surftransparency 100 :17.het
>>> 
>>> Using the GUI works just as intended so obviously I am the issue and I’m obviously not using the correct syntax, so how do I do this correctly?
>> 
>> 
>> The issue is not the syntax ( and “surftransparency” is exactly the same as “transparency” with “,s” after the value so no need to try both) but that the Coulombic-colored surface is in a different coloring mode that does not allow transparency to be adjusted.  It will work fine on surfaces that haven’t been colored to show per-vertex quantities.
>> 
>> If you really want to fade in a surface, I recommend fading it in as a single-color surface and then showing Coulombic coloring after that.  You could actually have two separate surfaces and fade in the non-Coulombic-colored one and then do a rapid switcheroo of hiding that one and showing the already-made Coulombic one.
>> 
>> I hope this helps,
>> Elaine
>> -----
>> Elaine C. Meng, Ph.D.                       
>> UCSF Chimera(X) team
>> Department of Pharmaceutical Chemistry
>> University of California, San Francisco
> 
> _______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu
> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users





More information about the Chimera-users mailing list