3.1.1. Command Actions Example

The >print command saves the viewer image to a file. All the settings for >print are read from the HARDCOPY: singleton object. However, if you want, you can specify the name of the hardcopy file as an argument to the >print command. The following CCL example demonstrates both of these alternatives.

# Define settings for saving a picture
HARDCOPY:
	Hardcopy Format = jpg
	Hardcopy Filename = default.jpg
	Image Scale = 70
	White Background = Off
END
#Create an output file based on the settings in HARDCOPY
>print
#Create an identical output file with a different filename
>print another_file.jpg