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

    control tool param with tablet pressure ?

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 513 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 13/08/2008 at 15:28, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,

      i want to make use of tablet pressure and tilt to control some of my plugins parameters.
      Is this possible ?

      i couldnt find anything about this in the api or with the forum search, so im a little clueless atm..

      initially i thought that i might catch signals from the tablet in the message method, but it didnt work s far..

      thanks,
      Daniel

      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 13/08/2008 at 16:45, xxxxxxxx wrote:

        ok i finally found some stuff in the api (inputevent) and i tried like this:

        > \> while(win->MouseDrag(&dx;,&dy;,&device;)==MOUSEDRAG_CONTINUE) \>      {                                    \>           GePrint("tilt: "+LongToString(device.GetLong(BFM_INPUT_TILT)));           \>           GePrint("rotation: "+LongToString(device.GetLong(BFM_INPUT_ROTATION)));           \>           GePrint("pressure: "+LongToString(device.GetLong(BFM_INPUT_VALUE_REAL)));           \> ... \>

        must be doing sth wrong though, as it always prints 0...
        i noticed theres also mention of a pen struct in the api, which is to be used inside of the mousedrag check, but im unsure what exactly to do..

        any help apreciated 😉

        cheers,
        Daniel

        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 14/08/2008 at 01:47, xxxxxxxx wrote:

          im trying like this now to get the data of the channel i want:

          > \> BaseContainer pen; \>      GetInputState(BFM_INPUT_MOUSE,BFM_INPUT_TILT,pen);           \> GePrint("tilt: "+RealToString(pen.GetReal(BFM_INPUT_VALUE_REAL))); \>

          but it still doenst work..
          there must be sth wrong in the way i query the channel..

          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 14/08/2008 at 03:56, xxxxxxxx wrote:

            alright i got it,finally found a similar example in the api:

            > \> BaseContainer state; \>      while (GetInputState(BFM_INPUT_MOUSE, BFM_INPUT_MOUSELEFT, state)){ \>           if (state.GetLong(BFM_INPUT_VALUE) == 0) break;     \>           LONG x = state.GetLong(BFM_INPUT_X); \>           LONG y = state.GetLong(BFM_INPUT_Y); \>           GePrint("x: "+LongToString(x)+", y: "+LongToString(y)); \> \> \>           Real t = state.GetReal(BFM_INPUT_TILT); \>           Real r = state.GetReal(BFM_INPUT_ROTATION); \>           Real p = state.GetReal(BFM_INPUT_VALUE_REAL); \>           GePrint("t: "+RealToString(t)+", r: "+RealToString(r)+", p: "+RealToString(r)); \>      } \>

            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 18/08/2008 at 03:08, xxxxxxxx wrote:

              Hi,

              i want to use the eraser tip of my pen too, does somebody know how to query it?

              by default it seems to work exactly the same way as the left mouse button. I wonder if its possible to check if the eraser tip is pressed ..?

              thanks,
              Daniel

              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 18/08/2008 at 07:36, xxxxxxxx wrote:

                The eraser tip is curretnly not supported as separate control.

                cheers,
                Matthias

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