Re: expression/material question

Date : Thu, 27 Apr 2006 18:58:36 +0930
To : XSI(at)Softimage.COM
From : David Short <dshort(at)rsp.com.au>
Subject : Re: expression/material question
Or you could probably use vertex colours/weights if you did not want to see a gradient across the object.

Andi Farhall wrote:

As a cheap'n'sleazy sidestep (depending on your application) I
occasionally use a big planar texture projection applied to a group of
objects and have a gradient in the render tree to do this sort of thing.

Andi

-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Klemens Kopetzky
Sent: Wednesday, April 26, 2006 4:15 PM
To: XSI(at)Softimage.COM
Subject: expression/material question

Hello all you gurus out there!

I am by no means a programmer. But I believed my understanding is enough

for a tiny expression here and there - till now ;-).
I have a scene with quite some objects sharing all the same material as a shared property. Within this material I want to drive a value of a colour correction node by the local z position auf each object. Leading to differently coloured objects depending on their height in the scene. Setting an expression for the appropriate parameter using "this.kine.local.posz" doesn't work. I think it's because the shared material doesn't belong to the object, so "this"does not point to the object. However this expression works if it is a local material and isn't shared by another object.
I am able to make a local copy of the material and add an appropriate expression to that material for my objects with a script. But that results in quite a couple of materials, which I find is quite a mess to tweak if changes need to be done. Is there a solution to tell XSI it should consider the position of the object the shared material is currently applied to?
I hope I didn't write to confusing. Please feel free to insult me because of such a newbie scripting question ;-)


Thanks for your help

   Klemens
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
unsubscribe xsi

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________


---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi



--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.