Coffee plugs lose icons in R10



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

    On 02/12/2006 at 05:59, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R10 
    Platform:   Windows  ;   
    Language(s) :   C.O.F.F.E.E  ;

    ---------
    Hi,
    No-one else seems to have mentioned this yet, but under R10, lots of (all?) Coffee plugs lose their icons.

    For example, the Coffee compiler itself has an icon under 9.603, but not under 10.008.

    I've got several Coffee plugs that seem to be fine under R10, except for this.

    Anyone know a fix?

    Cheers - Steve



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

    On 02/12/2006 at 15:15, xxxxxxxx wrote:

    What's the format? I use tif exclusively to avoid this problem in 64-bit Windows.



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

    On 03/12/2006 at 05:31, xxxxxxxx wrote:

    Hi Robert,
    I'm already using tif, and I'm seeing the problem under 32-bit WinXp. Don't know about other platforms.

    Maxon's own tif files aren't showing up either (like the one for the Coffee compiler - I also tried renaming the atom.tif Maxon file for my plug to use temporarily and it still didn't load it). If it's an image file format issue, then it's one that Maxon's own tifs fail.

    It looks more likely that the way Coffee plugins are supposed to load their icons has changed.

    Note that there is no problem with loading icons for C++ plugins - this is just a Coffee issue.

    Can anyone else confirm this behaviour?
    I.e. Install the R9.5 Coffee examples under R10, and fire up C4D. Note that many of the samples don't load anyway - clearly coffee has changed significantly (check the console).
    Those that load seem to run correctly, but are missing icons. E.g. the Coffee compiler.

    Cheers - Steve



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

    On 03/12/2006 at 14:33, xxxxxxxx wrote:

    It is quite possible then that the COFFEE icon load has changed. C++ plugin registration has also changed here and there in R10. Without documentation, you'll have to peruse whatever COFFEE uses for headers (if that's possible). At least with C++, some of the information and clues are available in the headers (_api and modules folders).

    Hopefully one of the developer support people (Mikael or Matthias) can explain this.



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

    On 18/12/2006 at 10:59, xxxxxxxx wrote:

    Have this got any explaination?
    I have -some- clients that have this problem in R10. The coffee plugintags load fine and works but some are getting a question mark instead of my Icon( .tif). If they load the plugin in R9.6 and save the scene and then open it in R10 the Icon is loaded as it should.

    Cheers
    Lennart



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

    On 10/01/2007 at 03:34, xxxxxxxx wrote:

    Hi,
    This work for me with C4 R10 :
     
    oMenuPlugin::GetIcon()
    {
       map = new(BaseBitmap,1,1);
    // Get plugin file path 
       var file = GeGetRootFilename();
     if (!file) return;
       file->RemoveLast();
    // Get icon file (same path as the plugin)
       file->AddLast("image.tif");
       map->Load(file);
     
       return map;
    }
    ...
    main()
    {
     
    // Register MenuPlugin
      Register(oMenuPlugin);
     
    }
     
    B->


Log in to reply