THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/02/2009 at 16:56, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform:
Language(s) : C++ ;
---------
Hi All,
In my plugin, I'm trying to determine the current value of a texture's animation mode. So I can get the string:
> \> BaseContainer data = chan->GetData(); \> String timeMode = LongToString(data.GetLong(BASECHANNEL_TIME_MODE, 0)); \>
Now I want test the value, my naive attempt:
> \> if (timeMode == "Loop") \> { \> // do some work \> } \>
It doesn't seem right to me that I would hard code the actual "Loop" string though, is there a better way to implement this?
Thanks!