Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Register
    • Login

    Method to access CAMorphNode pointdata reference index?

    Cinema 4D SDK
    2
    3
    621
    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.
    • jenandesignJ
      jenandesign
      last edited by jenandesign

      R20 Python

      Hello, thanks in advance for the help! I am trying to access point data stored in the CAMorphNode and specifically trying to read/write which vertex in the upstream PointObject each deformed point is "attached" to.

      The only data I can seem to extract from the CAMorphNode's pointdata is the position itself. There is no index reference to the PointObject that I can see? And the morphnode only seems to store points that have changed rather than all of the vertices.

      Example is simple:

      Cube "made editable" (into a PointObject) w/ pose morph tag attached. On the first pose (after base) there is only a single vertex/corner moved out of place.

      PointObject.GetPointCount() returns 8
      PointObject > CAPoseMorphTag > CAMorph.GetFirst() > CAMorphNode.GetPointCount() returns 1

      CAMorphNode.GetPoint(0) only returns the point vector for the moved corner instead of all 8 points, but I can't figure out which corner that is? Surely the data is in there somewhere, maybe just not accessible in Python?

      I hope I am missing something.

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • chuanzhenC
        chuanzhen
        last edited by

        Hi,
        you can read this thread

        相信我,可以的!

        1 Reply Last reply Reply Quote 1
        • jenandesignJ
          jenandesign
          last edited by

          THank you so much! 😸

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