hi all,
finally i have updated the script with the interface and refined the options,
i hope you could find it useful in some way:
note for c4d users: in order to import the material from standalone to the integrated plugin, it's necessary to "ungroup" the material, from this:
to this:
then, if saved as .ocs, the material can be imported into c4d.
ciao beppe
--old version--
hi,
here is my first lua script (with the help of jedi master thomas stratified kenobi )
it's a simple script that asks for an RGBA image and creates all the nodes and inputs for the classic mix material between a glossy and a diffuse, suitable for one-poly leaves or grass, using only one texture.
i hope you can find it useful.
ciao beppe
create a mix material with one RGBA image and lua - UPDATED
Last edited by bepeg4d on Tue Feb 25, 2014 6:20 pm, edited 1 time in total.
Bravo Beppe. 

Thanks for sharing, I modified mine to include jpg images. BTW you may have accidentally created a great skin shader without realizing it. Just tested it on Daz character.
Win 11 64GB | NVIDIA RTX3060 12GB
olà my friends 
i'm glad to hear that you like it
@tugpsx: i have create a variation more suitable for skin, basically i have removed the opacity nodes and added a second texture load for normal map, plus a different approach for specular and roughness.
i hope you can find it useful
ciao beppe

i'm glad to hear that you like it

@tugpsx: i have create a variation more suitable for skin, basically i have removed the opacity nodes and added a second texture load for normal map, plus a different approach for specular and roughness.
i hope you can find it useful

Awesome will give yours a go.
Win 11 64GB | NVIDIA RTX3060 12GB
Thanks for the script, Can I make a few suggestions that all can benefit from. You may need to update the prompt since it appears to prompt for both diffuse and normal texture but the requests ask for the same type. You could also make an interface to select both before the script runs. I know you were trying to keep it simple so again thanks.
Win 11 64GB | NVIDIA RTX3060 12GB
Tugpsx wrote:Thanks for the script, Can I make a few suggestions that all can benefit from. You may need to update the prompt since it appears to prompt for both diffuse and normal texture but the requests ask for the same type.
oops. sorry, corrected

about the interface, you are right, it would be a big step for me, but i need to increase my skill firstYou could also make an interface to select both before the script runs. I know you were trying to keep it simple so again thanks.

but is something i want absolutly to try.
thanks for looking at my scripts, very apreciated

ciao beppe
- stratified
- Posts: 945
- Joined: Wed Aug 15, 2012 6:32 am
- Location: Auckland, New Zealand
Great work Bepe. I think you created a nice little tool, useful for many artists.
cheers,
Thomas
cheers,
Thomas