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

    ObjectData::GetDimension() called with nullptr?

    SDK Help
    0
    5
    512
    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

      On 16/12/2016 at 06:11, xxxxxxxx wrote:

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

      ---------
      Hi,

      we have the problem that our object's

      GetDimension(BaseObject* op, Vector* mp, Vector* rad)
      

      function is sometimes called by Cinema with nullptr for mp and rad parameters (sometimes only one of them is nullptr, sometimes both). That prevents us from passing proper values for the object's bounding box, which then again causes more problems...

      Is there any reason Cinema might call that function with null pointers as parameters?

      Cheers,
      Frank

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

        On 19/12/2016 at 10:21, xxxxxxxx wrote:

        Hi Frank,

        What's the type of your object? Is it a point object?
        If yes, ObjectData::GetDimension() can be called by Cinema with nullptr for mp (to retrieve only rad ) or nullptr for rad (to retrieve only mp ).

        Are you sure both of them are nullptr sometimes? In what cases/situations? Are there 3rd party plugins involved?

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

          On 03/01/2017 at 07:18, xxxxxxxx wrote:

          Hi Yannick,

          Yes, sometimes the function is called with nullptr for both parameters, mp and rad.
          There are also third party plugins involved, but due to the lack of C4D debug symbols I can't tell where the calls originate from.

          Cheers,
          Frank

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

            On 04/01/2017 at 04:11, xxxxxxxx wrote:

            Hi Frank,

            Without a test scene or scenario it's hard to check this.
            Do you get nullptr for both mp and rad parameters without third party plugins?
            Could you send us a simple test scene to sdk_support[at]maxon.net?

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

              On 06/01/2017 at 04:33, xxxxxxxx wrote:

              I'll try to further isolate the issue and then send you something.
              If I don't further post on this issue, you can assume that it's one of the 3rd party plugins that makes the faulty call.

              Cheers,
              Frank

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