Page 1 of 1

Convert standard material to tri-planar

Posted: Wed Jul 29, 2020 10:39 am
by mikeadamwood
I find myself doing this all the time, would be awesome to get a script that simply converts each image texture node to a triplanar with a click?

I've done a little illustration to show what I'm trying to do, but essentially you run the script with the material selected and it finds every image texture node and adds a triplanar node, sets it to single texture and then adds a transform node that is plugged into each triplanar that's connected so you can adjust scale from one place.
OctaneTriplanarNode.jpg
I have to do this manually sometimes for ALOT of textures so this would be a HUGE time saver as in most instance triplanar allows you to texture most objects without having to worry about uvs or visible seams. It seems to me like one of those tasks that could be automated quite easily, but I'm not clued up with python so I wondered if anyone or Aoktar could maybe show me how it's done? I think this would help a lot of people out especially people doing architecture stuff. :D

Re: Convert standard material to tri-planar

Posted: Wed Jul 29, 2020 12:25 pm
by aoktar
Under tutorials section, some scripts are available as examples. They show how to create and connect octane nodes. I believe that it's good point to start write a script as you wish. Have you checked?