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
    • Login

    resource errors with SPLINE in R20

    Cinema 4D SDK
    python r20
    2
    4
    1.1k
    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.
    • indexofrefractionI
      indexofrefraction
      last edited by indexofrefraction

      Hi,
      I got a resource error with a python plugin only in R20 but not in R19.

      After probing a bit I tracked it down to GRIDSIZE_H 8; GRIDSIZE_V 8;
      which are not supported anymore in R20.

      but fyi, GRIDSIZE is still in the docs here:
      https://developers.maxon.net/docs/cpp/2023_2/page_descriptionresource__s_p_l_i_n_e.html

      with GRIDSIZE deleted, the resource loads,
      but even after adding NO_FLOATING_WINDOW; NOPRESETS;
      i still get gui elements i dont want (and didnt get in R19)
      --> Point X, Point Y and Interpolation,
      --> Tangent Left X/Y, Right X/Y, etc
      --> "Show in separate Window"

      how do i get rid of these in R20?
      i just want the diagram as this is a display only,
      the user is not supposed to change the spline

      0_1541406021476_R20.jpg

      and ps.. its not possible to change the post title, right?

      1 Reply Last reply Reply Quote 0
      • Y
        y_puech
        last edited by

        Hi,

        Thanks for reporting the issue with GRIDSIZE.
        GRIDSIZE_H/GRIDSIZE_V were removed from the Definition list but not from Flags and Example in the SPLINE Description Resource page you linked.
        This will be fixed in the next update of the C++ API docs.

        Several flags for the Spline have been removed in R20 but its overall GUI behavior hasn't changed.
        The Changes in R20 page provides the information about the discarded Spline GUI flags in R20.

        Yes there's an issue with NO_FLOATING_WINDOW flag. The "Show in seperate Window.." button is still present in the GUI even if the flag is enabled. This will be reported.

        About the other elements in the Spline GUI there aren't flags to get rid of them but the GUI can be minimized/maximized with the arrow on the top left.

        PS: If you can't change the topic's title in edit mode then I can do it for you.

        Former MAXON SDK Engineer

        indexofrefractionI 1 Reply Last reply Reply Quote 3
        • indexofrefractionI
          indexofrefraction @y_puech
          last edited by indexofrefraction

          @y_puech

          thanks,

          i saw the deprecated flags, and i fixed my resource.

          NO_FLOATING_WINDOW should hide the button, yes.

          but in r19 the same resource produces the spline diagram without these other gui elements.
          this seems not possible anymore in r20. also i can't hide these unwanted inputs manually (there is no arrow at the top left)

          i think this is unwanted / a bug, too.

          1 Reply Last reply Reply Quote 0
          • Y
            y_puech
            last edited by

            Hi,

            Are you using the Spline GUI inside a dialog? It looks like so if there's no arrow.
            If that's the case you can call SetLayoutMode(c4d.LAYOUTMODE_MINIMIZED) on the Spline custom GUI to change its layout to the minimized/spline element only.

            Former MAXON SDK Engineer

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