Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / Rendering / Use the Scale of an Object in an Material?
  RSS 2.0 ATOM  

Use the Scale of an Object in an Material?
Rate this thread
 
60310
 
Permlink of this thread  
avatar
  • Raschko
  • Posted: 24 September 2011 12:45 AM
  • Total Posts: 8
  • Joined: 11 December 2008 01:26 PM

Hi guys.
I have a scene with dozens ob Objects in it, and I’m searching for the best way to make a material that changes color dependent on the Y-Scale of the objects. Obviously this is quite easy for few materials, I currently have an expression in the an “Scalar Share"-Node in the material that reads the Scale from one specific Object, and I have one of these Material for every Object.
But isn’t there en easier way, when i’m dealing with much more Objects? Something more generally, in which I don’t need to edit an expression for every material?

I tried to write something like

this.kine.local.scly

instead of

Base.cube.kine.local.scly

but it didn’t work…

Can anyone give me an Idea?
Thx, Raschko



Replies: 0
avatar

Put an ICE tree on each object, and store sclY in an attribute.
In the render tree, use a Scalar Attribute node to pull in the ICE attribute.



Replies: 0
avatar
  • Raschko
  • Posted: 25 September 2011 08:38 AM

Ah, ok. That works, thx.
I didn’t do too much with ICE because I was caught in Maya the last years… ;-)



Replies: 0