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

    NodeData.Init() called very often

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 353 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 02/08/2012 at 07:36, xxxxxxxx wrote:

      Hello,

      I'm just curious of why NodeData.Init() is called multiple times. I could figure out the following cases that invoke that the method is called:

      1. Creating a new NodeData instance (includes loading a scene that contains the instance ) : Calls the method 2 to 3 times
      2. Changing any parameter: Calls it 1 to 2 times
      3. Deleting the instance: Calls it 1 time

      Is this supposed to be? It looks like a heavy overhead to me. I can reproduce this in all versions from R12 to R14.

      Thanks in advance,
      -Niklas

      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 02/08/2012 at 13:54, xxxxxxxx wrote:

        In several cases its because the object is moved to the undo stack and therefore a new one must be created and initialized as well.

        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 03/08/2012 at 01:14, xxxxxxxx wrote:

          Thank you Sebastian, I understand. 🙂

          -Nik

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