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

    ToolResizeData UI

    Cinema 4D SDK
    2
    7
    861
    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.
    • rsodreR
      rsodre
      last edited by

      Hello!

      I'm following the example from the ToolResizeData manual page, and I can already set my tool size and pressure. But there's a couple of things that I can't make work

      1. To set ToolResizeFalloffData.falloff, I need to alloc the SplineData in RESIZE_PASS_GENERATEFALLOFF, but that message is never being called. Is there anything I need to set to start calling it?

      2. I'm trying to display text besides the cursor like when we resize the Sculpt brushes using ToolResizeData.cursor_text, but nothing happens. I set it all the time, but it never prints anything on the viewport.

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        Hi Roger, thanks for reaching out us.

        With regard to the first question it's likely that the ToolResizeFalloffData::dirty should be truein order to have the RESIZE_PASS_GENERATEFALLOFF being properly called.

        With regard to the second question, I'm still investigating but the way in Cinema 4D the text is displayed beside the cursor on tool size/pressure change has nothing to do with the ToolResizeData::cursor_text but is automatically delivered by the implementation of SculptBrushToolData.

        Best, Riccardo

        rsodreR 2 Replies Last reply Reply Quote 1
        • rsodreR
          rsodre @r_gigante
          last edited by

          @r_gigante said in ToolResizeData UI:

          With regard to the first question it's likely that the ToolResizeFalloffData::dirty should be truein order to have the RESIZE_PASS_GENERATEFALLOFF being properly called.

          That seems to trigger the message, thanks.

          1 Reply Last reply Reply Quote 0
          • rsodreR
            rsodre @r_gigante
            last edited by

            @r_gigante I don't know why this topic was marked as Solved, but the second issue still persists. I can set allt he viewport brush parameters, but still I can't print any text on the viewport with `ToolResizeData.cursor_text

            r_giganteR 1 Reply Last reply Reply Quote 0
            • r_giganteR
              r_gigante @rsodre
              last edited by

              @rsodre as already stated it has nothing to do with ToolResizeData::cursor_text(although the documentation states differently) and if you look at the implementation of SculptBrushToolData example it delivers out of the box pressure/size HUD without any further addition.

              Regards, Riccardo

              rsodreR 1 Reply Last reply Reply Quote 0
              • rsodreR
                rsodre @r_gigante
                last edited by

                @r_gigante You mean with pParams->EnablePressureHUD(true); ?

                1 Reply Last reply Reply Quote 0
                • r_giganteR
                  r_gigante
                  last edited by

                  @rsodre : looks like it.

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