THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/03/2003 at 11:04, xxxxxxxx wrote:
Cinema 4D Version: 8.012
Platform: Mac ;
Language(s) : C.O.F.F.E.E ;
I'm trying to set data in the Movie_From and Movie_To fields of the movie data of a texture.
I wrote the folowing code:
var mat = texture; // texture is a variable from a port of the COFFEE node
var color = mat->GetChannel(CHANNEL_COLOR);
var colorBc = color->GetContainer();
ct->SetFloat(BASECHANNEL_TIME_FROM,number1); // WHY ISN'T THIS WORKING???
Why is the line ct->SetFloat(BASECHANNEL_TIME_FROM,number1); not working?!?!?
How can I make it work? Oh, the number1 variable is also a variable from a port of the COFFEE node.
Thank you very much in advance.
On 18/03/2003 at 10:02, xxxxxxxx wrote:
Wow, did you ever even get this to compile? Here are all the errors:
1. BASECHANNEL_TIME_FROM undefined (define as 1008).
2. colorBc->GetData(); makes no sense. Use the container directly.
3. BASECHANNEL_TIME_FROM is an integer, the frame number. So use SetData() and use an integer. (There's no SetFloat() in C.O.F.F.E.E.)