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

    DescID() python doc issue

    Cinema 4D SDK
    python 2023
    2
    3
    415
    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.
    • chuanzhenC
      chuanzhen
      last edited by

      Hi,
      I tried to run the script using the code provided in the python document, but an error was reported.
      test.jpg
      9577843e-94be-4c54-a931-87cb39e22705-image.png

      相信我,可以的!

      1 Reply Last reply Reply Quote 0
      • i_mazlovI
        i_mazlov
        last edited by

        Hi @chuanzhen,

        Thanks for pointing this out. DescID in python doesn't have copy constructor implementetion, which is explicitly stated by the line:

        52191e2c-f856-44aa-bc82-6b35324bdb2b-image.png

        One should use int or DescLevel instead.

        However, the code snippet in the docs is wrong and misleading. The code snippet in the documentation will be updated in our regular internal task planning manner.

        Cheers,
        Ilia

        MAXON SDK Specialist
        developers.maxon.net

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

          @i_mazlov Thanks👍

          相信我,可以的!

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