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
    • Recent
    • Tags
    • Users
    • Login

    Check if knife has cut

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

      On 06/12/2015 at 09:19, xxxxxxxx wrote:

      Hello everybody,

      id like to do some stuff in CommandData after the knifetool has made a cut. Is it possible to check that?

      greetings
      rown

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

        On 06/12/2015 at 10:11, xxxxxxxx wrote:

        Hello

        Do you mean to need, from scratch(i do not check out this way) :
        1. to pack c4d.utils.SendModelingCommand to additional boolean function
        2. Check out destination target is dirty(any methods) > failure of knife?

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

          On 06/12/2015 at 16:12, xxxxxxxx wrote:

          Hey Iliy,

          thx for reply. My first thought was dealing with dirtys, but I dont want it checking the whole time any objects. I thought there could be a more comfortable way, but I didnt find anything.
          **

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

            On 07/12/2015 at 01:40, xxxxxxxx wrote:

            Hello,

            I wouldn't know a direct way to detect this. But you could implement a MessageData plugin, listening for the EVMSG_CHANGE message, checking if the active tool is the knife tool (with GetAction()) and compare the point count of the currently selected polygon object with the previous count.

            Best wishes,
            Sebastian

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

              On 07/12/2015 at 05:12, xxxxxxxx wrote:

              Hello S_Bach,

              thx for your ideas, but especially for the information that there is no way.
              EVMSG_CHANGE, GetAction() and point count are the steps it is taking at the moment, but in gedialog.CoreMessage.

              Meanwhile Ive kicked the knife part out. Maybe Ill give it one more chance in some days.

              Thx alot again
              rown

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