Forum: Poser Python Scripting


Subject: Does someone knows how to "Add to Scene" an MT5?

Y-Phil opened this issue on Oct 30, 2023 ยท 7 posts


Y-Phil posted Tue, 31 October 2023 at 4:08 AM

The purpose of this  script was to ease the upgrade of a character's material. My setups are fairly simple: on the Cycles part, there's a root Cycles node, to which is attached a compound node

How to detect and replace the said compound node: no problems
How to copy-paste a selected node: I think I know how, using the MaterialManager
How to select a specific node: no idea, but I know how to upload a specific MT5, delete any root nodes as these specific nodes don't have such node. Then using the MaterialManager: selectall, then copy, then paste elsewhere

the problem using this steps:
- can't create a new material, and then delete it afterwards
- can create a new layer, but how to load the MT5 in that layer instead of the base layer?

One solution could be to create specific MT5 that are ready-to-load in a specific layer.

I'll check this after my job.

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


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

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