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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    coffee in xpresso

    SDK Help
    0
    2
    169
    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
      Helper
      last edited by

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

      On 01/10/2004 at 05:25, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8 or 9  
      Platform:    Mac  ;  Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

      ---------
      hi all,
      i'm totaly new to c.o.f.f.e.e.
      does anybody knows an information or a tutorial that indroduce the use of the single c.o.f.f.e.e. line codes in a xpresso node?
      for example: i need, for an adjustment of the colors of 128 skydome-lights the information of a texture. my guess is to use the get:pixel command.
      sorry, i struggled with this little line.
      -----------
      BaseBitmap::GetPixel
      SDK-Language: COFFEE

      Type: Function
      Date Created: 12/26/2000 10:19:22 AM
      Date Updated: 12/26/2000 10:19:22 AM
      Product: XL,NET,BP
      Version: 6103

      Definition

      [vector] GetPixel([int] x, [int] y);

      Description

      Returns the color in the bitmap at the position given by x and y. If not 0<=x<width and 0<=y<height, the function returns NIL.
      ---------------

      thanks for every information about this

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

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

        On 12/10/2004 at 10:08, xxxxxxxx wrote:

        It is possible to use bitmaps in Xpresso with C.O.F.F.E.E. The easiest way is to drag an image from the material manager to the Xpresso window. That will create a Bitmap node. From the Bitmap node you can get the File property, which is the filename of the texture. Drag this to a Filename input of a C.O.F.F.E.E. node. This is a small example that calculates a pixel in the bitmap:

            
            
            main()  
            {  
              var bm = new(BaseBitmap,1,1);  
              bm->Load(File);  
              Pixel = bm->GetPixel(10,21);  
            }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post