Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Calling a blocking Plugin

    General Talk
    2
    4
    718
    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.
    • FSSF
      FSS
      last edited by

      So i have a plugin we bought, thats doing what its supossed to do, but once i call the menue with my python script, i lack the ability to apply it. I tried threading, but cinema4d is (wisely) on the side of us devs threading lightly.

      def main():
          c4d.CallCommand(CORONA_TO_CV4DMATERIAL_CONVERT)  
          doc = documents.GetActiveDocument()    
          
          ackThread = threading.Thread(target=acknowledgeThread)
          ackThread.start()
          time.sleep(5)
          tool = c4d.plugins.FindPlugin(CORONA_TO_CV4DMATERIAL_CONVERT) # Search Transfer Tool instance
          c4d.CallButton(tool, c4d.MDATA_APPLY)
          c4d.EventAdd()            
          c4d.WriteConsole("acknowledged\n")
      

      PS: Usually there is a header file with menue options listed that can be called as commands. My first attempt was to itterate from the plugins command nr upwards in a for loop until i found another plugin. No changes were applied.

      Finally, i tried to de-obfuscate the python bytecode, to repair the plugin, but failed due to lazyness. (Its identifying header + barrelshift & XOR?)

      1 Reply Last reply Reply Quote 0
      • FSSF
        FSS
        last edited by FSS

        Has anyone solved this in python && Commandline.exe? I dont wanna go to AutoIt and full gui..

        1 Reply Last reply Reply Quote 0
        • r_giganteR
          r_gigante
          last edited by

          Hi FSS, thanks for reaching out to us.

          Your question it's outside the support purview of the SDK Team and, hence, we can't help. I also recommend refraining on talking, in this forum, about software reverse engineering or software hacking: this is not allowed under any circumstance.
          Finally, if you need to script the plugin execution, consider reaching out to the software vendor which might provide, given his knowledge on the plugin design, more valuable insights.

          Best, Riccardo

          1 Reply Last reply Reply Quote 0
          • FSSF
            FSS
            last edited by

            Understood.

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