Y-Phil opened this issue on May 02, 2021 ยท 13 posts
Y-Phil posted Sun, 02 May 2021 at 3:17 PM
Hi all
If you are like me, often using an HDR bitmap on the background, there is a moment when we have to find the right angle. Even though it is as esay as click, move the cursor, enter the valeur, enter and wait till Poser has finished to update, and make a fast test-render, here is a little script I have written to ease that part, and it works also in the "Pose" room:
import poser
def set_background_angle(angle):
bk_shader = poser.Scene().BackgroundShaderTree()
for node in bk_shader.Nodes():
if node.Type() == 'ccl_Mapping':
node.InputByInternalName('Rotation').SetColor(0.0,angle,0.0)
bk_shader.UpdatePreview()
val = poser.DialogSimple.AskFloat("Enter the Vertical Rotation (rad)")
if val != None:
set_background_angle(val)
Just as a reminder, here is the setup I have saved in my runtime library:
The longuest part to write this script: well... to guess that I had to define the rotation values by setting the Mapping node's Rotation "Color"... lol
๐ซ๐ฝ๐๐
(ใฃโโกโ)ใฃ
๐ฟ Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
๐ฟ Mac Mini M2, Sequoia 15.2, 16GB, 500GB SSD
๐ฟ Nas 10TB
๐ฟ Poser 13 and soon 14 โค๏ธ