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

    Vector

    SDK Help
    0
    2
    227
    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
      Helper
      last edited by

      On 04/07/2017 at 01:02, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R18 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello.

      In .res files you can have VECTOR as parameter type. That adds 3 spinners for X,Y,Z.
      Can I have a VECTOR2 parameter ? I need only X and Y.
      I found a Vector2dCustomGui parameter. Is there any example with it ?

      Thank you.

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

        On 04/07/2017 at 01:27, xxxxxxxx wrote:

        Hello,

        there is no build-in 2D vector type in Cinema 4D. The 2D Vector Field Vector2dCustomGui is a custom GUI for the standard 3D vector type. It is used for example in the MoText's "Axis" parameters. Or you can simply create a "Vector" user data with the "2D Vector Field" interface.

        If you want to have a pure 2D vector parameter type you might have to create it yourself using a custom data type based on CustomDataTypeClass and a custom GUI based on CustomGuiData / iCustomGui.

        best wishes,
        Sebastian

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