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

    SpecialEventAdd and Float parameter

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 470 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 01/10/2015 at 00:40, xxxxxxxx wrote:

      Is it possible to set P2 to a Float in SpecialEventAdd?
      Normally it is a Int32, but can I use SpecialEventAdd to send a Float?

      -Pim

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

        On 01/10/2015 at 09:35, xxxxxxxx wrote:

        Hi Pim,

        no, I don't think, that's possible.
        Depending on your needs (value range, precision) you could get away with something like this:

        SpecialEventAdd(id, value * 1000)
          
        and then in CoreMessage:
          
        value = receivedValue / 1000
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 02/10/2015 at 01:42, xxxxxxxx wrote:

          Brilliant, thank you.

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