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
    • Register
    • Login

    Load issues

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 304 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 12/01/2006 at 04:07, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      hi all 🙂
      i have created what i think is the bare minimum code to get a plugin recognised within c4d.  it is a video post plugin and it does show up in render effects tab. however when i load it it always looks for a .str file within /resource/strings_us/decription, i was under the impression if i didnt load a res file or call n e function that required a .str file i would not have to create one. i've tried even creating the relevent folder structure within the plugin path but this doesnt seem to stop it. here is the code, it does compile as i said:

          
          
          
          
          #include <c4d.h>
          
          
          
          
          class greyscale : public VideoPostData
          
          
          
          
          {
          
          
          
          
          public:
          
          
          
          
          static NodeData *Alloc(void) { return gNew greyscale; }
          
          
          
          
          virtual Bool Init(GeListNode *node);
          
          
          
          
          virtual void ExecuteLine(PluginVideoPost *node, PixelPost *PPost);
          
          
          
          
          virtual LONG GetRenderInfo(PluginVideoPost *node) { return VIDEOPOST_REFRESH; }
          
          
          
          
          };
          
          
          
          
          void greyscale::ExecuteLine(PluginVideoPost *node, PixelPost *PPost)
          
          
          
          
          {
          
          
          
          
          }
          
          
          
          
          #define ID_GScale 1000009
          
          
          
          
          Bool greyscale::Init(GeListNode *node)
          
          
          
          
          {
          
          
          
          
          return TRUE;
          
          
          
          
          }
          
          
          
          
           
          
          
          
          
          Bool RegisterGScale(void)
          
          
          
          
          {
          
          
          
          
          return RegisterVideoPostPlugin(ID_GScale,"Grey Scale",0,greyscale::Alloc,"greyscale",0,0);
          
          
          
          
          }
          
          
          
          
          Bool PluginStart(void)
          
          
          
          
          {
          
          
          
          
          RegisterGScale();
          
          
          
          
          return TRUE;
          
          
          
          
          }
          
          
          
          
          void PluginEnd(void)
          
          
          
          
          {
          
          
          
          
          }
          
          
          
          
          Bool PluginMessage(LONG id,void *data)
          
          
          
          
          {
          
          
          
          
          return TRUE;
          
          
          
          
          }
          
          
          
      

      is there n e reason it should need a .str file with this code?

      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 13/01/2006 at 08:30, xxxxxxxx wrote:

        Change this line

          
        return RegisterVideoPostPlugin(ID_GScale,"Grey Scale",0,greyscale::Alloc,"greyscale",0,0);  
        

        to

          
        return RegisterVideoPostPlugin(ID_GScale,"Grey Scale",0,greyscale::Alloc,"",0,0);  
        

        The fifth parameter is trying to use the resource file greayscale.str

        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 13/01/2006 at 09:40, xxxxxxxx wrote:

          Ah Gee, i love u man, lol, something so silly.
          now it doesnt give the error and it was so simple to add the 'grey scale' code after that, so my first plugin works, if not somewhat useless 😄

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