How do i connect a mesh material node to an outputmaterial

Forums: How do i connect a mesh material node to an outputmaterial
Forum for OctaneRender Lua scripting examples, discussion and support.

How do i connect a mesh material node to an outputmaterial

Postby Wallan » Thu Jul 02, 2015 9:41 pm

Wallan Thu Jul 02, 2015 9:41 pm
This must be really simple.
I just cant get it to work.
Could someone give me an example of how i connect a material in a mesh to a nt_out_material inside a graph.

I have created a graph that has some output materials named A,B,C etc.
Outside the Graph I have a mesh with materials with names A,B,C etc.

As the mesh has a couple of pins that not should be connected i have chosen to iterate the graph output materials and then find the mesh material pin with same name and connect them. Currently I get an error, cant connect node A with node A.
Windows 7 Ultimate 64bit 32Gb RAM. Intel Core i7-5820K [email protected] GHZ. Display uses a Gigabyte GTX 460 1Gb VRAM. Octane uses an EVGA GTX 970 4Gb VRAM.
Wallan
Licensed Customer
Licensed Customer
 
Posts: 47
Joined: Fri Jan 23, 2015 6:13 pm

Re: How do i connect a mesh material node to an outputmaterial

Postby Wallan » Thu Jul 02, 2015 11:08 pm

Wallan Thu Jul 02, 2015 11:08 pm
Solved it myself in the end.

Could not figure out how to get the correct pin by name but iterating by index until i found the right ones solved my problems.
Windows 7 Ultimate 64bit 32Gb RAM. Intel Core i7-5820K [email protected] GHZ. Display uses a Gigabyte GTX 460 1Gb VRAM. Octane uses an EVGA GTX 970 4Gb VRAM.
Wallan
Licensed Customer
Licensed Customer
 
Posts: 47
Joined: Fri Jan 23, 2015 6:13 pm

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 4 guests

Tue Mar 19, 2024 10:56 am [ UTC ]