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: How to get connected GeListNode

    Cinema 4D SDK
    python r20
    2
    3
    416
    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.
    • M
      mp5gosu
      last edited by mp5gosu

      Hello.
      I'm currently searching for a way to retrieve the GeListNode instance from within a custom method of a NodeData plugin. Similar to C++ Get()

      Inherited functions come with a node parameter, but there doesn't seem to be a way to retrieve the connected ListNode in custom functions?

      Am I overseeing something?

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @mp5gosu.

        There is no such Get method in python, however normally all methods to override in a NodeData and derived classes should expose the current BaseList2D instance, so you just need to forward it.
        Maybe a method is missing this BaseList2D instance if yes could you point it to us?

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • M
          mp5gosu
          last edited by mp5gosu

          Thought so.
          No, there's nothing missing in inherited methods. Thought, it'd be convenient. However, storing it to a member variable on init or forwarding does the trick.

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