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

    Start parameters and automatisation

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 310 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 08/10/2014 at 08:28, xxxxxxxx wrote:

      Hi all,

      is there a way to start CINEMA and let it always import a named File and then start some commands?
      Someshing like this:

      "CINEMA 4D R16.EXE -import:import.stl -skript:template.py -layout:client.l4d"

      1. Start Cinema
      2. Start with a special Layout (this i found in Documentation -layout)
      3. import an STL-file
      4. start a Plugin
      5. Render and save the result (this i found in Documentation)

      Thanks to All
      Ronald

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

        On 10/10/2014 at 03:28, xxxxxxxx wrote:

        Hi,

        ist there no one who can help me ore give an advice?
        Thanks

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

          On 10/10/2014 at 04:48, xxxxxxxx wrote:

          Hi
          You can capture command line arguments in your plugin with pluginMessage: http://goo.gl/xdhSPh

            
          import c4d   
          import sys   
            
          def PluginMessage(id, data) :   
              if id==c4d.C4DPL_COMMANDLINEARGS:   
                  print str(sys.argv) #print arguments   
            
                  return True   
            
              return False   
          

          Cheers
          Bonsak

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