• Welcome to the Community Forums at HiveWire 3D! Please note that the user name you choose for our forum will be displayed to the public. Our store was closed as January 4, 2021. You can find HiveWire 3D and Lisa's Botanicals products, as well as many of our Contributing Artists, at Renderosity. This thread lists where many are now selling their products. Renderosity is generously putting products which were purchased at HiveWire 3D and are now sold at their store into customer accounts by gifting them. This is not an overnight process so please be patient, if you have already emailed them about this. If you have NOT emailed them, please see the 2nd post in this thread for instructions on what you need to do

Help! I need some poser python scripts and am getting lost

Dreamer

Dream Weaver Designs
I had hopped it could be used on other materials but sounds like that might be a pipe dream. Taking that out of the equation that helps a lot @Gadget Girl only one other thing, the ks_microfacet has two inputs and I am wanting to make changes to both so to do that do I just do a second line of ksInput.SetFloat?
 

Gadget Girl

Extraordinary
Contributing Artist
So actually the code I gave you could be used any material, it just only affects the ks_microfacet node. So as long as those mats have that node, it would work. What I meant is if you say had two ks_microfacet Nodes, so ks_microfacet_1 and ks_microfacet_2 it wouldn't be able to choose the correct one.

Also we may not be using quite the same terminology because when I create a ks_microfacet node and look at it, I see this:



Which also tells me I misnamed the input. So this node has three inputs: Specular_Color, roughness, and Ks. You could either access them by InputByInternalName(name) or you could do it by index. So Input(0) would be the sepecular, Input(1) would be roughness, and Input(2) would be Ks.
 

Dreamer

Dream Weaver Designs
Yep I got what you are saying about working across the board :)
Its the roughness and Ks I am changing on the node.
 

Dreamer

Dream Weaver Designs
Ok so it looks like I am have jumped for joy too soon, the script doesn't work after all.
It just packed a fit on the yourMat bit, told me there was no material named that so changed it to the name of the texture mat and it then tossed out a syntax error on ("UnicornHorn")
So I am right back where I started lol if I have to do a set of three scripts for every texture mat I might as well just do mc6's and end up with about 100+ of them just to change gloss settings but the end of it :mad:
 

Gadget Girl

Extraordinary
Contributing Artist
Not sure what sort of syntax error you got, but if I understand what you are trying to do the name of the material is always either going to be UnicornHorn, or 1_Hoof. Now you may need some sort of error detection in case the user has the wrong figure selected (like the mane).
 
Top