Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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?
\> var myvar=6; \> hmm#ID_USERDATA:6=ob; //works fine \> hmm#ID_USERDATA:myvar=ob; //doesn't work \>
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?
\> var channel = mat->GetChannel(CHANNEL_BUMP); \> var container = channel->GetContainer(); \> container->SetData(CH_TEXTURE, "blabla.tif"); \> channel->SetContainer(container); \>
3, I have several Drag&Drop; Fields in my Layout:
> AddStaticText(4002,BFH_SCALEFIT,260,0,"Objekt einfügen",BORDER_THIN_IN);
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()); \>
\> 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
On 05/03/2009 at 01:58, xxxxxxxx wrote:
Still hoping for an early answer!
On 05/03/2009 at 02:14, xxxxxxxx wrote:
I hope the following answers are correct (so without garantee) :
1. I guess does not work. 2. Gradients cannot be access by Coffee 3. Don't know if there is a "GetIcon()" method.
On 05/03/2009 at 08:01, xxxxxxxx wrote:
THX Shawni
well, I found a workaround for Problem 1 and 2. But I'm still wondering why this simple combination of variables in question 1 isn't working ...
For question 3: I think I can access the icon with:
> msg->GetData(DRAGTYPE_ICON)
msg->GetData(DRAGTYPE_ICON)
But I have no idea how to get it into the Drag &Drop; area. Maybe someone has a working Coffee Plugin including a LinkBox. I would be really grateful to get some code snippets...
On 05/03/2009 at 08:08, xxxxxxxx wrote:
1. Not possible but you can do something like this:
> \> var myvar = 1; \> \> switch(myvar) \> { \> case 1: \> op#ID_USERDATA:1 = TRUE; \> break; \> case 2: \> op#ID_USERDATA:2 = TRUE; \> break; \> } \>
\> var myvar = 1; \> \> switch(myvar) \> { \> case 1: \> op#ID_USERDATA:1 = TRUE; \> break; \> case 2: \> op#ID_USERDATA:2 = TRUE; \> break; \> } \>
2. Currently it's not possible to insert shaders.
3. You have to add a user area to your dialog for each icon. See GeUserArea and AddUserArea().
cheers, Matthias
On 06/03/2009 at 01:47, xxxxxxxx wrote:
tyvm