Forum: Poser - OFFICIAL


Subject: Cycles - How to mask a box in two different colors?

3D-Mobster opened this issue on Jan 12, 2023 ยท 41 posts


Y-Phil posted Tue, 17 January 2023 at 2:47 PM

Ok, I got it: when entering the compound node, for whatever reason, the node that exposes the outputs is located at a completely random location: something like (81, -2147483648)

I wrote this thingie to reset at a decent location  both the Input and the output.
Seems to work with P11 and P12. It simply rearrange any compound node's Input and Output nodes.

x = y = 10
mat = poser.Scene().CurrentMaterial()
for node in mat.ShaderTree().Nodes():
    compound_data = node.CompoundData()
    if not compound_data: continue
    for item in compound_data.ExposedOutputs():
        compound_data.SetExposedInputsLocation(x+1000, y)
        compound_data.SetExposedOutputsLocation(x, y)

๐’ซ๐’ฝ๐“Ž๐“


(ใฃโ—”โ—กโ—”)ใฃ

๐Ÿ‘ฟ 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 โค๏ธ