How to create a switch between two materials?
0 Comments Published by Fluffy June 12th, 2008 in TutorialsHi there,
here is a simple Xpresso setup to create a switch between two materials without reaffecting it to the texture tag manually. Especially useful when working with proxy texture (or low resolution videos) to switch back to the high resolution one at render time.
First, you need to create the User Data that will hold the boolean switch. Here, I placed it on a Null Object.

Then, add a Xpresso tag, and drag the texture tag of your object, as well as the Null Object containing the User Data.

Using a condition node, you’ll tell your boolean User Data to act as a switch between the 2 materials. Drag the two materials from the material manager, and link their “object” output to each input of the condition node.Set your condition node mode to “material”, otherwise it won’t link your “object” outputs.

That’s it. Enabling/disabling the switch will yield a 0 and 1 value, which will make either the red or green material to be affected to the texture tag.
Here is the file : switchc4d
Categories
|
||||
No Comments to “How to create a switch between two materials?”
Please Wait
Leave a Reply