set driven key does not work for the "colorEntryList[1].position". the attribute "position" does not belong to the ramp either - it is only a virtual name for the selected position when you edit the ramp in attribute editor. if you want to use a sdk then there is a nasty little workaround for it:Originally posted by spandy
Hi there
I've made an eyeball with a pupil from a ramp texture. Then I've made a custom attribute "Pupil" inside my locator for the eyeball.
Now I want the pupil to crow as the pupil attribute changes. Inside the "Set Driven Key" dialog there is no "position" attribute for the ramp, so I added it inside the "Channel Control" of the ramp, named "colorEntryList[1].position", when I now got back to my "Set Driven Key" dialog I got a new attribute "Position" for the ramp, but when I try to set it as a key, I get the error message "Error: No object matches name ramp1.position".
Am I missing something? Please help me.
Spandy
ramp1.colorEntryList[1].position = ramp1.pupil_position; ramp1.colorEntryList[3].position = ramp1.pupil_position-0.02;