|
That’s right. I did change the last line of the setAttr “Small_Fish1_M.color” to sliderB so it looks like this:
setAttr “Small_Fish1_M.color”
string $shader = “Small_Fish1_M”; // The shader to be controlled by the slider string $changeColor = “float $curColor[] = `colorSliderGrp -q -rgbValue sliderA`;setAttr “ + ($shader) + “.color -type double3 $curColor[0] $curColor[1] $curColor[2];”; colorSliderGrp -label “Small Fish Colour” -rgb 1 1 1 -cc “eval ($changeColor)” sliderB;
This screws up the controls even though i can execute it without an error. Uni deadline is 10th Jan and i’ve no idea how to fix this.
I’ve just checked again with these changes and the colour slider for the shark controls the fish and the colour slider for the fish doesn’t work at all. Is there a specific title that you have to rename it as or can it be sliderA, sliderB, sliderC etc.
Author: R*
|