Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    some C.O.F.F.E.E questions

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 543 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 05/03/2009 at 01:58, xxxxxxxx wrote:

        Still hoping for an early answer!

        Thanks in advance

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          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.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            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)

            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...

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              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; \> } \>

              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

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 06/03/2009 at 01:47, xxxxxxxx wrote:

                tyvm

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post