Forum: Poser - OFFICIAL


Subject: Snarly's scripts

rokket opened this issue on Jan 30, 2024 Β· 60 posts


Y-Phil posted Sun, 02 February 2025 at 7:25 PM

philadam

Oh most of the time, I open the Material Room, I select an existing material. Then I launch Poser's python shell, and I start with those 4 lines:
scene=poser.Scene()
mat=scene.CurrentMaterial()
tree=mat.ShaderTree()
node = [n for n in tree.Nodes() if n.Name()='the_right_node_name'][0]

I know them all by heart now 

Then I experiment with the desired node. In the shell, "node." starts a list, upon selecting one line of the list and entering the character "(", Poser describes the function and its the parameters. The rest represents hours of experimenting and finding errors and glitches.
Reading Poser's existing scripts helps too. For this, I'm using Microsoft's Visual Studio Code and its search function in Poser's library of scripts.


π’«π’½π“Žπ“


(っ◔◑◔)っ

πŸ‘Ώ Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gaming, Asus Tuf Gaming RTX 4070 OC Edition, 1+2 TB SSD's, 6+4TB HD
πŸ‘Ώ Mac Mini M2, Sequoia 15.5, 16GB, 500GB SSD
πŸ‘Ώ Nas 10TB
πŸ‘Ώ Poser 13 and 14 β€οΈ

π‘€π“Ž π’’π’Άπ“π“π‘’π“‡π“Ž