Nagarajan wrote:
Hello all,
I am having some doubts in command line argument in pymol. Can anyone tell
me the command to change the background to white using command line..! I
can use it in a movie script.
cmd.bg_color('white')
For running commands in a pymol script (which means running it with the
'run' command, not the '@') you have to follow the PYMOL API format at
the end of the help output.
For example for 'help bg_color' you get:
DESCRIPTION
"bg_color" sets the background color.
USAGE
bg_color [ color ]
ARGUMENTS
color = string: color name or number {default: black}
EXAMPLES
bg_color grey30
bg_color
NOTES
To obtain a transparent background, "unset opaque_background", and
then use "ray".
SEE ALSO
set_color, ray
PYMOL API
cmd.bg_color(string color)
and the PYMOL API tells you that you have to add a string within the
cmd.bg_color() command.
Hope it helps,
Gianluca