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

    [SOLVED] How to create spline type userdata?

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 584 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

      On 27/11/2017 at 03:43, xxxxxxxx wrote:

      Hi, everyone!

      I want to create a spline type userdata, which I can create at
      "Attribute Manager" > "User Data" > "Add User Data", in "Properties", there is a "Data Type", which I can choose "Spline".

      But in python script, I can't use c4d.GetCustomDatatypeDefault(c4d.DTYPE_SPLINE) to create one, and use AddUserData to add it into a object.

      How can I create a spline type userdata with python?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 28/11/2017 at 04:01, xxxxxxxx wrote:

        Welcome here, I'm not at home but instead of DTYPE_SPLINE  use c4d.CUSTOMDATATYPE_SPLINE

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 28/11/2017 at 21:01, xxxxxxxx wrote:

          It works! Thank you very much!

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