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

    Using c4d_symbols.h ID's in Py4D ?

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 663 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 01/06/2011 at 10:19, xxxxxxxx wrote:

      Hi,

      how can I acess the ID's created from ResEdit in the c4d_symbols.h file ?
      They are not added to the c4d Module, and not loaded into the Plugins Scope.

      For example if I want to load a Ressourcefile for a Dialog.

      self.LoadDialogResource(DESCEDIT_MAIN)
      

      but "DESCEDIT_MAIN" isn't defined.

      Thanks,

      Niklas

      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 01/06/2011 at 16:24, xxxxxxxx wrote:

        Please add these manually in your scope. They are not interpreted by the internal Parser.

        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 01/06/2011 at 23:24, xxxxxxxx wrote:

          That's pretty unfortunate. 😞
          But thank you very much. I could still find a convenient way to do this.

          class foo: pass  
          res = foo()  
          enm = [  
          "DESCEDIT_ADDGROUP",  
          "EDT_IDENTIFIER",  
          "EDT_ID",  
          "EDT_STRINGNAME",  
          "EDT_PARAMETERS",  
          "BTN_ADD_ELEMENT",  
          "BTN_FINISH",  
          "BTN_CANCEL",  
          "IDC_LISTVIEW",  
          "DESCEDIT_ADDELEMENT",  
          "EDT_TYPE",  
          "STR_HASCYCLE",  
          "BTN_ADDCYCLE",  
          "DESCEDIT_ADDCYCLEID",  
          "EDIT_IDENTIFIER",  
          "DESCEDIT_MAIN",  
          "EDT_DESCNAME",  
          "BTN_SAVE",  
          "BTN_ADD_GROUP",  
          "BTN_REMOVE",  
          "DESCEDIT_EDITCYCLE",  
          "BTN_CYCLE_ADD"  ]  
          i   = 10000  
          for k in enm:  
            i += 1  
            res.__dict__[k]     = i
          
          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 09/06/2011 at 09:51, xxxxxxxx wrote:

            See here 🙂

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