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

    Adding object properties in .res-file

    Scheduled Pinned Locked Moved SDK Help
    14 Posts 0 Posters 850 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 05/06/2008 at 03:14, xxxxxxxx wrote:

      Ah, ok, I didn't know about c4d_strings.str and c4d_symbols.h. Thanks a lot!

      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/06/2008 at 03:29, xxxxxxxx wrote:

        Hm, still I got the error...

        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/06/2008 at 03:48, xxxxxxxx wrote:

          I would need some source code to help you further.

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

            Oh, of course. Sorry.

            My *.res-file still is unchanged.

            Baum.h:

            > \> #ifndef \_OBaum_H\_ \> #define \_OBaum_H\_ \> \> enum \> { \>      ECHTZEIT = 1000 \> }; \> \> #endif \>

            obaum.str:

            > \> STRINGTABLE OBaum \> { \>      OBaum "Baum Objekt"; \>       \>      ECHTZEIT     "Echtzeitaktualisierung"; \> } \>

            c4d_strings.str:

            > \> STRINGTABLE \> { \>      IDS_BAUM     "Baum"; \>      IDS_SDK_VORLAGE               "SDK-Vorlage"; \>       \> } \>

            c4d_symbols.h:

            > \> enum \> { \> \>      IDS_SDK_VORLAGE, \>      IDS_BAUM     = 10000, \> \> }; \>

            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/06/2008 at 04:59, xxxxxxxx wrote:

              please make sure that header, ressource and string file have the same name, for example "obaum.h", "obaum.res" and "obaum.str".

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

                Changed that, still the same error.

                Maybe it helps to see my Init-Method:

                > \> Bool Baum::Init(GeListNode \*node) \> { \>      BaseObject          \*op          = (BaseObject\* )node; \>      BaseContainer \*data = op->GetDataInstance(); \> \>      data->SetBool(ECHTZEIT,FALSE); \> \>      return TRUE; \> } \>

                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/06/2008 at 05:24, xxxxxxxx wrote:

                  What does your register function look like? Something like this

                  > \> Bool RegisterAtomObject(void) \> { \>      // decide by name if the plugin shall be registered - just for user convenience \>      String name=GeLoadString(IDS_ATOM); if (!name.Content()) return TRUE; \>      return RegisterObjectPlugin(ID_ATOMOBJECT,name,OBJECT_GENERATOR|OBJECT_INPUT,AtomObject::Alloc,"Oatom","atom.tif",0); \> } \>

                  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 05/06/2008 at 06:00, xxxxxxxx wrote:

                    There it is:

                    > \> Bool RegisterBaum(void) \> { \>      String name=GeLoadString(IDS_BAUM); if (!name.Content()) return TRUE; \>      return RegisterObjectPlugin(ID_BAUMOBJECT,"Baum",OBJECT_GENERATOR,Baum::Alloc,"oBaum",NULL,0); \> } \>

                    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/06/2008 at 06:11, xxxxxxxx wrote:

                      Does the "oBaum" in the RegisterObjectPlugin() function exactly match with the file names? Usally it's best to avoid upper case completly.

                      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 05/06/2008 at 07:19, xxxxxxxx wrote:

                        Yes, that's the exact filename (without file type extension of course).

                        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/06/2008 at 08:09, xxxxxxxx wrote:

                          Could you send me the source code? You can send it to [email protected] , it will kept confidential of course.

                          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/06/2008 at 02:20, xxxxxxxx wrote:

                            Oh, thanks a lot for the offer, but I found the error! Stupid little me put the *.h-file into the wrong folder!

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