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

    The basics of res files and descriptions

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 331 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 17/04/2008 at 13:53, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Ok guys, perhaps I'm a bit dense... if I have what is shown below, where should I see my new attribute (IS_TRUE_OR_NOT) show up? Am I missing something? I can't find any errors nor is anything showing up that I can find. Thanks again everyone! (I left out main.cpp because it seems to register ok)

      source/MyMenuPlugin/oMyMenuPlugin.cpp:
      > \> #include "c4d.h" \> #include "Omymenuplugin.h" \> \> class MyMenuPlugin : public CommandData \> { \>      public: \>           virtual Bool Execute(BaseDocument \*doc); \> }; \> \> Bool MyMenuPlugin::Execute(BaseDocument \*doc) \> { \>      GePrint("----------------"); \>      GePrint("Menu Executed..."); \>       \>      StopAllThreads(); \> \>      BaseObject \*null_p = NULL; \>      null_p = BaseObject::Alloc(Onull); \>      null_p->SetName("MY_NULL"); \>       \>      BaseContainer \*bc = null_p->GetDataInstance(); \>      bc->SetBool(IS_TRUE_OR_NOT, TRUE); \> \>      doc->StartUndo(); \>      doc->InsertObject(null_p, NULL, NULL); \>      doc->AddUndo(UNDO_NEW, null_p); \>      doc->EndUndo(); \>       \>      doc->Message(MSG_UPDATE); \>      EventAdd();      \> \>      return TRUE;      \> } \> \> Bool RegisterMyMenuPlugin(void) \> { \>      return RegisterCommandPlugin(1000002,"My Plugin Name",0,"",String("MyMenuPlugin"),gNew MyMenuPlugin); \> }

      res/strings/Omymenuplugin.str:
      > \> STRINGTABLE Omymenuplugin \> { \>      Omymenuplugin          "This is my plugin."; \>      IS_TRUE_OR_NOT          "Is it true or not?"; \> }

      res/description/Omymenuplugin.h:
      > \> #ifndef \_Omymenuplugin_H\_ \> #define \_Omymenuplugin_H\_ \> \> enum \> { \>      IS_TRUE_OR_NOT = 1 \> }; \> \> #endif

      res/description/Omymenuplugin.res:
      > \> CONTAINER Omymenuplugin \> { \>     NAME Omymenuplugin; \>     INCLUDE Onull; \> \>     GROUP ID_OBJECTPROPERTIES \>      { \>           BOOL IS_TRUE_OR_NOT { } \>      } \> }

      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 17/04/2008 at 14:32, xxxxxxxx wrote:

        I don't think you can add attributes to a Null Object like that... you might need to create your own plugin object that acts like a Null Object. See this thread .  Your menu plugin would then just allocate and insert one of your custom objects.

        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 17/04/2008 at 15:05, xxxxxxxx wrote:

          AAAhhh, so I guess I have a thick skull. That's what kuroyume0161 was trying to say about not being able to extend the camera in my earlier thread. I'll take a look into this route and see if I can get my head around it.

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