Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Materials / Need a shader that assigns random texture - Need wisdom
  RSS 2.0 ATOM  

Need a shader that assigns random texture - Need wisdom
Rate this thread
 
36789
 
Permlink of this thread   Subscribe to this thread
avatar
  • dostler
  • Posted: 17 November 2009 09:34 AM
  • Total Posts: 5
  • Joined: 05 March 2007 03:02 AM

I need to assign one shader to many objects so that I can adjust all objects in the same shader but each object must receive a different random shader.  How can I do this in maya?

Is there a way of assigning `rand 1 100` to a variable in a file texture so that each time a shader assigns a unique texture to an object?

Is there a way of overriding the file texture assigned by a shader by connecting a file node to an object?

Thanks for your thoughts,
David O



Replies: 1
/img/forum/dark/default_avatar.png

maybe that will help you: http://www.djx.com.au/blog/2009/...singleswitchmel/#more-150

Author: seb9d

Replied: 17 November 2009 01:41 PM  
avatar
  • dostler
  • Posted: 18 November 2009 01:55 AM

Thanks for the reply

Something like this:
http://www.djx.com.au/blog/2009/...singleswitchmel/#more-150

May work but I was hoping for something a little more simple.  Shouldn’t it be as simple as replacing a number in the file texture with a # that gets assigned by an id number on the object?  Is there not a way of doing this in maya?

I would like to assign the texture name to something like this:
${FILENAME}.${FILENUMBER}.${EXT}
Is this possible within maya?



Replies: 0




   
  Settings Choose Theme color: