Sign in to follow this  
mqualls

Passing Dynamic Data to Color Node

Recommended Posts

I am attempting to dynamically populate the color nodes as in the following code:

<colorRange>
 <color minValue='0' maxValue='<?php echo $targetMins; ?>' name='Bad' code='FF0000' />
 <color minValue='<?php echo $targetMins; ?>' maxValue='5000' name='Good' code='00FF00' />
</colorRange>

^^^This does not work ... the color from the second color node overrwrites the color from the first color node ... Do any of you have an idea of why this would not work?

If I hard code the values it works; such as:

<colorRange>
 <color minValue='0' maxValue='4000' name='Bad' code='FF0000' />
 <color minValue='4000' maxValue='5000' name='Good' code='00FF00' />
</colorRange>

Let me assure you, also, that the variables that I am echoing to the color nodes do contain values; this was the first thing that I verified.  However, no matter what I have tried, short of hard coding the values, has not worked.

 

Any help on this issue would be very much appreciated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this