Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Read Tag values from within Execute()

    SDK Help
    0
    2
    40
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 28/02/2006 at 08:55, xxxxxxxx wrote:

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

      ---------
      The interface of my tag is built from a description resource.
      Now I try to retrieve these parameters from within Execute() or Draw() with:

      Real value = tag->GetData().GetReal(MY_REAL_VALUE);

      A zero value appears all the time. While looking for any differences to the lookatcamera example, I found only the GUI there being build at runtime rather than from a resource. Doing likewise makes it work. Same happened when trying to add combobox items at runtime.

      Are description resources not recommended overall?
      I ask this because resources for command plugins are suggested.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 09/03/2006 at 15:52, xxxxxxxx wrote:

        The rule of thumb would be to use resources when it possible and code when you have to, to make it easier for your (and your users) to modify the interface without recompiling.
        I doubt that having a description resource is the reason for problem you're describing, though. Did you try using tag->GetParameter() just to be sure?

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