Skip to content

Instantly share code, notes, and snippets.

@aokcubcg
aokcubcg / createnode.py
Created November 6, 2022 10:04
Create a node by RPC and make linkage
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]
# 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/;