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

    Inititialize values of NodeData

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 285 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 09/03/2009 at 01:42, xxxxxxxx wrote:

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

      ---------
            Hi!

      The implementation of Res Files is done. I made some examples. I found out that the type of an element is None, even its set correct in the res Folder.

      example:

      > \>         REAL test        { UNIT METER; MIN 0.0; } \>

      and test = 1002

      > \>     def init(self, op) : \>         print op.get_data_instance()[1002] #via get_data_instance \>         print op[1002] #via getparameter \>         return True \>

      both returns "None".

      1. Do I have to initialize them with the correct type?
      2. If I have to, can I initialize them with SetParameter, too?

      Thanks

      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 16/03/2009 at 03:11, xxxxxxxx wrote:

        hi, any advices?

        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 16/03/2009 at 03:47, xxxxxxxx wrote:

          How do you get the type in C++? Do you use your own resource loader? If so does it only not work with your own resource laoder? In general I need more clues what is going on, the Python stuff does not tell me much.

          cheers,
          Matthias

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