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


Bastep posted Tue, 31 October 2023 at 2:55 AM

Y-Phil posted at 1:27 PM Mon, 30 October 2023 - #2983728

Poser's Material object has a dedicated function: LoadMaterialSet(....) which effectively loads either an MT5 or an MC6 file, which fine.

But I'd like to load an MT5 without removing the existing nodes setup, and this function doesn't seem to have another parameter to control this, as any tests I did with other parameters ended up in an error message "Invalid Spec map" or something like that.

I've been working intensively with Python and the material room in the last few weeks. No, there is no such possibility. This problem is only possible with an extended LoadMaterialSet command. So an add/replace option. But that's a matter for the developers.

pydoc didn't let me guess any other functions, so that, maybe, there's none.

I had an other idea: create a layer to add the MT5 in, but it looks like a dead end, too.

Thanks in advance.

Otherwise, you only have the option of loading the nodes somewhere, which you have done, and copying them from there into the target material using a recursive node query. I tried. My brain exploded. What is an additional obstacle is the inability to identify a selected node. This ultimately forces you to make manual changes in the material room. Which I don't think is the point of it.

Greetings

PS: Excuse my bad English. I'm already an older generation. We didn't have English lessons until very late in school. He had left no lasting impression.