This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import terragen_rpc as tg | |
try: | |
root = tg.root() | |
# add easy cloud | |
new_cloud = tg.create_child(root, 'easy_cloud') | |
# link Planet Atmosphere and easy cloud created before. | |
atmos = root.children_filtered_by_class('planet_atmosphere')[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert TG3 rendered spherical image to PNG24 | |
# perl convert_sample.pl -i ~/temp.0001.exr -w 8192 -o test | |
use 5.012; | |
use warnings; | |
use utf8; | |
use Image::Magick; | |
use Time::Piece; | |
use Getopt::Long qw/:config posix_default no_ignore_case gnu_compat bundling/; |