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

    H2 run a command plugin from a object plugin?

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 878 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 14/04/2018 at 00:43, xxxxxxxx wrote:

      I have an object plugin (a generator) from which I want to start a command plugin.
      CallCommand(command plugin Id) in the generator of course does not work.

      What can I do to start a command plugin from a generator?
      Or is that not possible from the generator due that it is threaded?

      -Pim

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

        On 14/04/2018 at 01:39, xxxxxxxx wrote:

        Use the SpecialEventAdd() function, this will result in a CoreMessage, which you could capture in a MessageData, which then performs the CallCommand to your CommandData

        Note that this isn't a synchronized event. Whenever the coremessage is picked up, the action will be done. Not necessarily right at the moment you send out the SpecialEventAdd.

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

          On 14/04/2018 at 02:27, xxxxxxxx wrote:

          Thanks, I will give it a try.

          Edit: And it works great!

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

            On 17/04/2018 at 00:28, xxxxxxxx wrote:

            Hi Pim,

            I don't have a lot to add in this topic, but it can be useful for you to read Message manual or even this thread

            Cheers,
            Maxime

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