$ global name=highlight5
$ scene1 visualization=../TransAtlas.vmd

# scene1

! in `highlight`, the option `multiframe=0:0-17` tells
! molywood to transition from showing *just* frame 0
! to showing all frames from 0 to 17

animate          frames=0
fit_trajectory   selection='resid 20 to 30'
highlight        selection=protein t=1s color=structure mode=u alias=mf style=newcartoon material=diffuse

! note that the command below doesn't affect the highlight 
! because highlights make copies of materials

make_transparent material=diffuse
highlight        multiframe=0:0-17 t=1s mode=n alias=mf
fit_trajectory   selection='resid 220 to 230' t=1s
highlight        multiframe=0-17:17 t=1s mode=n alias=mf
do_nothing       t=1s

! remember to switch back to `multiframe=now`
! if you plan on using `animate` later

animate          frames=17
{highlight        multiframe=now alias=mf mode=n;
animate          frames=17:0 t=1s}
do_nothing t=1s
