How to get different silhouette widths for 2 maps

Hi there, I am trying to create a video with two maps overlay with different silhouette widths. It is easy to do with 2 images, but how I can do it in a video setting? If I change the width to 6, all maps changes the width to 6. Thanks! -Hong

Hi Hong, I don't think there is any way to do it directly in ChimeraX. There is only one global silhouettes state (on or off) and one silhouette width per running instance of ChimeraX. As far as I know: You'd have to do something really fancy like save the individual image frames for two separate movies (using the two different silhouette linewidths), then use some image editing program (e.g. in Gimp or whatever you've been doing already for 2 images) to combine the pair of images for each frame, and then some other method to assemble the time series of pairwise-combined images into a movie. Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Resource for Biocomputing, Visualization, and Informatics Department of Pharmaceutical Chemistry University of California, San Francisco
On Feb 13, 2025, at 2:29 PM, Hong ZHAN via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi there,
I am trying to create a video with two maps overlay with different silhouette widths. It is easy to do with 2 images, but how I can do it in a video setting? If I change the width to 6, all maps changes the width to 6.
Thanks!
-Hong

Thanks Elaine for the ideas! Hong Sent from my iPhone
On Feb 13, 2025, at 4:40 PM, Elaine Meng <meng@cgl.ucsf.edu> wrote:
Hi Hong, I don't think there is any way to do it directly in ChimeraX. There is only one global silhouettes state (on or off) and one silhouette width per running instance of ChimeraX.
As far as I know: You'd have to do something really fancy like save the individual image frames for two separate movies (using the two different silhouette linewidths), then use some image editing program (e.g. in Gimp or whatever you've been doing already for 2 images) to combine the pair of images for each frame, and then some other method to assemble the time series of pairwise-combined images into a movie.
Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Resource for Biocomputing, Visualization, and Informatics Department of Pharmaceutical Chemistry University of California, San Francisco
On Feb 13, 2025, at 2:29 PM, Hong ZHAN via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi there,
I am trying to create a video with two maps overlay with different silhouette widths. It is easy to do with 2 images, but how I can do it in a video setting? If I change the width to 6, all maps changes the width to 6.
Thanks!
-Hong

Hi Hong, Elaine is right that the silhouettes are calculated on the entire scene placing black edges where the depth jumps, so no way to apply different silhouette widths to different maps. But a trick you could use is to select one of the maps to show a green selection outline. The color and width of the selection outline can be set with command graphics selection color black width 6 The selection outline is different than a silhouette, it only goes around the perimeter of the map while a silhouette also highlights jumps in the middle of a single map. But maybe it will be what you need. Tom
On Feb 13, 2025, at 2:40 PM, Elaine Meng via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi Hong, I don't think there is any way to do it directly in ChimeraX. There is only one global silhouettes state (on or off) and one silhouette width per running instance of ChimeraX.
As far as I know: You'd have to do something really fancy like save the individual image frames for two separate movies (using the two different silhouette linewidths), then use some image editing program (e.g. in Gimp or whatever you've been doing already for 2 images) to combine the pair of images for each frame, and then some other method to assemble the time series of pairwise-combined images into a movie.
Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Resource for Biocomputing, Visualization, and Informatics Department of Pharmaceutical Chemistry University of California, San Francisco
On Feb 13, 2025, at 2:29 PM, Hong ZHAN via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi there,
I am trying to create a video with two maps overlay with different silhouette widths. It is easy to do with 2 images, but how I can do it in a video setting? If I change the width to 6, all maps changes the width to 6.
Thanks!
-Hong
_______________________________________________ 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/

Thanks Tom!!! It is what I want ! Super thanks! It gets much easier for me! -Hong
On Feb 13, 2025, at 16:59, Tom Goddard <goddard@sonic.net> wrote:
Hi Hong,
Elaine is right that the silhouettes are calculated on the entire scene placing black edges where the depth jumps, so no way to apply different silhouette widths to different maps.
But a trick you could use is to select one of the maps to show a green selection outline. The color and width of the selection outline can be set with command
graphics selection color black width 6
The selection outline is different than a silhouette, it only goes around the perimeter of the map while a silhouette also highlights jumps in the middle of a single map. But maybe it will be what you need.
Tom
On Feb 13, 2025, at 2:40 PM, Elaine Meng via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi Hong, I don't think there is any way to do it directly in ChimeraX. There is only one global silhouettes state (on or off) and one silhouette width per running instance of ChimeraX.
As far as I know: You'd have to do something really fancy like save the individual image frames for two separate movies (using the two different silhouette linewidths), then use some image editing program (e.g. in Gimp or whatever you've been doing already for 2 images) to combine the pair of images for each frame, and then some other method to assemble the time series of pairwise-combined images into a movie.
Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Resource for Biocomputing, Visualization, and Informatics Department of Pharmaceutical Chemistry University of California, San Francisco
On Feb 13, 2025, at 2:29 PM, Hong ZHAN via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi there,
I am trying to create a video with two maps overlay with different silhouette widths. It is easy to do with 2 images, but how I can do it in a video setting? If I change the width to 6, all maps changes the width to 6.
Thanks!
-Hong
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://urldefense.com/v3/__https://mail.cgl.ucsf.edu/mailman/archives/list/...
participants (3)
-
Elaine Meng
-
Hong ZHAN
-
Tom Goddard