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

    ToolData

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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 26/06/2011 at 08:55, xxxxxxxx wrote:

      Hy there,

      I implemented a simple ToolData Plugin, which doesn't do anything useful yet. I wonder how I can implement the "Default" behavior for the mouse. So I would like that the user can switch to Point Mode and select some points. The same with the Edge Mode.

      Right now, the mouse does not seem to be interactive with the scene (I guess, that is my part to implement). So, how can get the MouseInput(..) Method to behave in the default manner?
      I want to do some actions once a certain selection has been done ...

      Thank you,
      maxx

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 26/06/2011 at 15:46, xxxxxxxx wrote:

        Have you checked out the LiquidPainter example?

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 26/06/2011 at 15:59, xxxxxxxx wrote:

          Yes, actually its based on that one.

          But in the Liquid-Painter there is no "default" behavior ? Ie. it is not possible to select an edge or a point of an object (as it is not implemented).

          Maybe I need to call the parents MouseInput(..) method to get the default behavior ?

          Thank you,
          maxx

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 05/07/2011 at 12:38, xxxxxxxx wrote:

            Push ...

            Does anyone know how to implement the MouseInput(..) in order to get the Cinemas default behavior?

            Thank you,
            maxx

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 05/07/2011 at 14:20, xxxxxxxx wrote:

              AFAIK you can't be inside of a Tool plugin and ask it to go into "ignore mode" while you do something else like selecting a point. You have to exit the tool to do that.

              I haven't had the chance to use Tool plugins much myself. Still lots I don't know about them.
              But I can offer you this simple example that moves the active object when the mouse is clicked. And rotates the active object if the arrows keys are pressed:ToolPlugin

              The guys in the C++ forum might be able to give you some pointers too.

              -ScottA

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

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 06/07/2011 at 11:47, xxxxxxxx wrote:

                Hy Scott,

                thank you for the code, always very useful.

                I thought the ToolData is the way to go, but I made a CommandData now. So, the user just creates the selections and then calls that command.

                Thank you,
                maxx

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