
Hi Daniel, Put a "wait 1" command after the "view front.cut" command. Cryptic, I know! The trouble is that when running a script the graphics is never redrawn unless you use this "wait" command which says to draw a frame. The cap is not computed unless the graphics is redrawn. So the coloring happens before the cap is computed unless you use this wait command. In Chimera running scripts redraws between each line of the script, but this slows down running the script so we are trying not doing those redraws in ChimeraX. But this case and a few others (like changing map contouring level) only cause updates to the surfaces when the frames are redrawn. We need to figure out a better compromise between speed and obvious behavior. Tom
On Apr 7, 2021, at 6:27 PM, Daniel Asarnow <asarnow@msg.ucsf.edu> wrote:
Hi, I'm trying to generate a figure using several surfaces colored by map values. If I clip a surface, and then color it, the caps have the correct colors. However, when I do the same thing non-interactively, the caps are uncolored. Am I doing something wrong?
view front.cut color sample #1.1 map #1.2 palette cyanmaroon range 2.25,7.0 #surface dust #1.1 size 100 save front_cut.png pixelSize 0.1 transparentBackground true
Best, -da _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users