THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/03/2009 at 07:20, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R10
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hey,
I hope to get some answers to these C.O.F.F.E.E questions:
1, Syntax Problem:
> \> var myvar=6; \> hmm#ID_USERDATA:6=ob; //works fine \> hmm#ID_USERDATA:myvar=ob; //doesn't work \>
How can I add myvar instead of 6?
2, Add a gradient to material:
> \> var channel = mat->GetChannel(CHANNEL_BUMP); \> var container = channel->GetContainer(); \> container->SetData(CH_TEXTURE, "blabla.tif"); \> channel->SetContainer(container); \>
Its not possible to add a gradient instead of the tif, is it?
3, I have several Drag&Drop; Fields in my Layout:
> AddStaticText(4002,BFH_SCALEFIT,260,0,"Objekt einfügen",BORDER_THIN_IN);
> \> if(msg->GetId() == BFM_DRAGRECEIVE) { \> if(CheckDropArea(4002, msg, TRUE, TRUE)) { \> SetDragDestination(MOUSE_POINT_HAND); \> if(msg->GetData(BFM_DRAG_FINISHED)) { \> object = GetDragObject(msg); \> SetString(4002, object->GetName()); \>
I want the Object's Icon shown in the Layout, not only the Object's Name. How can I add them? Probably it's not possible with AddStaticText but maybe in a different way.
Thanks in advance