Jump to content

Texture swapping or switch


Recommended Posts

Hi,
Im looking for a manual way to switch my textures on a model. Say I have a plank, a yellow texture and a green texture.

I want to be able to switch from yellow to green. Like a switch node.

Does anyone have an idea how to do this?

 

Thanks in advance

Edited by Marcomeeuwse
Link to comment
Share on other sites

You can use Material SOPs to do this. Material SOPs can use the shop_materialpath attribute or style sheets. Up to you.

 

The Material SOP has the capability to do material overrides. Just use two Material SOPs to set up your settings then follow with a Switch SOP.

 

See the attached scene file.

 

Is this what you were after?

Link to comment
Share on other sites

wauw thanks to all, :)

this newb learned something new.

 

Sl0throp, i added the switch node but up untill a moment ago i didn't knew you could promote attributes, and add it to the parameters in my obj level.

great idea to animate it. I'm going to use that later. Thanks for the help :)

 

old school, your method is very nice, as i prefer to have everything in the obj level. A VOP always stress me out when i see such large nodes. Didn't knew you could do that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...