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:
User Information:
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:
main()
{
var mat = texture; // texture is a variable from a port of the COFFEE node
var color = mat->GetChannel(CHANNEL_COLOR);
var colorBc = color->GetContainer();
var ct=colorBc->GetData();
ct->SetFloat(BASECHANNEL_TIME_FROM,number1); // WHY ISN'T THIS WORKING???
colorBc->SetData(&ct;);
color->SetContainer(colorBc);
mat->Update();
}
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.
Rui Batista