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

    GeDynamicArray.ReScope()

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 185 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 21/07/2009 at 14:58, xxxxxxxx wrote:

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

      ---------
      What does this do exactly? The explanation in the SDK docs is a bit terse:

      Resizes the array without copying old data (it clears the array), sets the data to 0 (clears data).

      Does this mean that it changes the number of elements in the GeDynamicArray and sets the element class members stored within to 0?

      In one of my dynamic arrays, there is one class that should always remain there so I was thinking of calling:

      // in the library class definition
      GeDynamicArray <LibraryCollection*> collections;

      // in the library code
      collections.ReScopeNC(1L);

      To Free() all of the array elements but the static first one. Would this work? 🙂

      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 22/07/2009 at 08:30, xxxxxxxx wrote:

        ReScopeNC() appears to be doing what is needed. 🙂

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