Difference between revisions of "Movie fade"
(Added additional example (surface) with code and file)
m (→See Also: referenced movie_color_fade)
|Line 69:||Line 69:|
Revision as of 09:10, 10 June 2014
|Author(s)||Jason Vertrees and Thomas Holder|
|This code has been put under version control in the project Pymol-script-repo|
This script will help fade in and out settings in a movie. Just specify the setting, it's initial value at an initial frame and it's ending value and frame.
movie_fade setting, startFrame, startVal, endFrame, endVal [, selection ]
To fade in sticks from fully transparent to fully opaque across 60 frames do:
mset 1x60 movie_fade stick_transparency, 1, 1., 60, 0.
More complex example which involves camera motion:
fetch 1rx1, async=0 as cartoon show surface mset 1x80 movie.roll movie_fade transparency, 1, 0., 40, 1. movie_fade transparency, 41, 1., 80, 0.