Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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.
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