So with a bunch of people getting Poser 11 with the sale, as well as some other people asking some Python questions, the scripting bug has bitten me again, and I'm wondering if I cleaned up a script I'd written people would be interested in it.
When Poser 11 first came out, and I was trying to figure out how to make my content work in Superfly, I began to put together a script to make 'fixing' materials for Superfly easier. Then EZSkin3 came out, and it's awesome and is way better than anything I could make for skin shaders. But. . . there are a lot of other things that can either look wrong or just not as good if you don't 'fix' them for Superfly.
For example. One of my favorite outfits of all time is Arki's Dragon Keeper, with a favorite texture set called Keep of Kings. Here's what it looks like in the preview window:
Now that is actually only four out of the nine figures that are part of the outfit (there is a lot of jewelry as well). And it's pretty complex. If I just hit render in Superfly, this is what I get:
Obviously not at all what you'd be expecting, because it's lots the red color along with a lot of the detail, the scales on the corset having become a shiny silver, and the rest of the jewelry has become duller than it should be.
Now this is a script I designed to work with the console/error log in Poser so you can see what Superfly doesn't like, and fix it. An example of one of the errors I'm getting over and over is this:
15:01:50 - SuperFly: Cannot connect output from node Clay to input Value 1 on node Color_Math.
I quick look in the Material Room, and it seems that the image maps plug into Clay, which plugs into Color_Math which plugs into Alternate_Diffuse.
So what my script allows you to do is type in the name of a node, and have it relink across all the materials on whatever figures I choose. Since all my figures have the same problem I just run the script once and re-link Clay to Alternate Diffuse on all the materials. Here's what I get:
That's way better. But I still have a bunch of errors in the logs, and it could still be better. At this point the main thing I'm getting is that Ambient_Occlusion is causing issues. I really just want to delete Ambient_Occlusion from all the materials. This might sound easy, but here's an example of the output my script gives me when I run it, and this only shows what it's done on the dress, it still has four more figures to run on:
Here is a close up render of just the broach. The version on the right is the one where I've gotten rid of Ambient_Occlusion.
At this point I've only got one set of error left on one material on the corset (which looks black in the above images) and it's easier just to fix by hand than run the script (although the script would do it). Here's the final version.
So after all that, my question is would people be interested in a script that can mass delete and re-link nodes across multiple figures (it does have a selection box so you can control what figures it runs on). And what other kind of mass actions do you wish you could preform on materials.
Also, I know it's totally possible there is another script out there that can already do these things. I'd be curious if there is. Basically this script works great for me, but it does have some bugs and idosyncracies that I'd want to fix if I was going to distribute it, and I'm trying to decide if it's worth my time, or if I should play around with some other ideas I have.
Thoughts?
When Poser 11 first came out, and I was trying to figure out how to make my content work in Superfly, I began to put together a script to make 'fixing' materials for Superfly easier. Then EZSkin3 came out, and it's awesome and is way better than anything I could make for skin shaders. But. . . there are a lot of other things that can either look wrong or just not as good if you don't 'fix' them for Superfly.
For example. One of my favorite outfits of all time is Arki's Dragon Keeper, with a favorite texture set called Keep of Kings. Here's what it looks like in the preview window:
Now that is actually only four out of the nine figures that are part of the outfit (there is a lot of jewelry as well). And it's pretty complex. If I just hit render in Superfly, this is what I get:
Obviously not at all what you'd be expecting, because it's lots the red color along with a lot of the detail, the scales on the corset having become a shiny silver, and the rest of the jewelry has become duller than it should be.
Now this is a script I designed to work with the console/error log in Poser so you can see what Superfly doesn't like, and fix it. An example of one of the errors I'm getting over and over is this:
15:01:50 - SuperFly: Cannot connect output from node Clay to input Value 1 on node Color_Math.
I quick look in the Material Room, and it seems that the image maps plug into Clay, which plugs into Color_Math which plugs into Alternate_Diffuse.
So what my script allows you to do is type in the name of a node, and have it relink across all the materials on whatever figures I choose. Since all my figures have the same problem I just run the script once and re-link Clay to Alternate Diffuse on all the materials. Here's what I get:
That's way better. But I still have a bunch of errors in the logs, and it could still be better. At this point the main thing I'm getting is that Ambient_Occlusion is causing issues. I really just want to delete Ambient_Occlusion from all the materials. This might sound easy, but here's an example of the output my script gives me when I run it, and this only shows what it's done on the dress, it still has four more figures to run on:
Here is a close up render of just the broach. The version on the right is the one where I've gotten rid of Ambient_Occlusion.
At this point I've only got one set of error left on one material on the corset (which looks black in the above images) and it's easier just to fix by hand than run the script (although the script would do it). Here's the final version.
So after all that, my question is would people be interested in a script that can mass delete and re-link nodes across multiple figures (it does have a selection box so you can control what figures it runs on). And what other kind of mass actions do you wish you could preform on materials.
Also, I know it's totally possible there is another script out there that can already do these things. I'd be curious if there is. Basically this script works great for me, but it does have some bugs and idosyncracies that I'd want to fix if I was going to distribute it, and I'm trying to decide if it's worth my time, or if I should play around with some other ideas I have.
Thoughts?