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

    BaseContainer GetType

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 370 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 25/10/2009 at 12:40, xxxxxxxx wrote:

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

      ---------
      Hi!

      Can anyone check out this code?

      > <code>
      >
      >> `

        
      \>      BaseContainer bc;  
      \>      bc.SetReal(1, (Real)5.0);  
      \>      bc.SetLong(1, (LONG)3);  
      \>      if(bc.GetType(1)==DA_REAL)  
      \>          GePrint("hmm??");  
      \>  
      

      `
      >
      > </code>

      Can anyone confirm? In my opinion it should be DA_LONG.

      Thanks! 🙂
      Cheers, Sebastian

      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 26/10/2009 at 02:39, xxxxxxxx wrote:

        Confirmed in R10 and R11.5. And yes, I would also have thought it should be DA_LONG.

        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 26/10/2009 at 02:59, xxxxxxxx wrote:

          Also in GeData.

          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 26/10/2009 at 03:31, xxxxxxxx wrote:

            It's not allowed to change the type of a container value.

            From the docu:
            Once you've set a container value using one type you must neither try to access it using another type, nor overwrite it with a value of another type! Using the wrong access will not crash, but it is illegal.

            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 26/10/2009 at 04:28, xxxxxxxx wrote:

              Yes, reading the docu might help. Thanks Matthias! 🙂

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