Dataclay — Automating Digital Production
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Register
    • Login

    Simple startup scipt to open and enable bot

    Scheduled Pinned Locked Moved
    Templater Event Scripts
    2
    2
    453
    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.
    • AngryMangoundefined
      AngryMango
      last edited by

      Hi, I’d really appreciate some help.

      I’m looking to setup either a powershell command or batch file request that we can run from Pulseway or on machine startup to open a project file and enable the projects bot.

      I can launch the project from a batch file but unsure on how to enable the bot.

      I’ve followed the instruction for the templater.ps1 powershell command and have filled out the templater-options.json file etc and whilst it launches the programme, it doesn’t seem to be opening the referenced aep file.

      Im getting no errors or feedback in the log files even though the paths have been set for those.

      Any guidance really appreciated.
      M

      1 Reply Last reply Reply Quote 0
      • ariestavundefined
        ariestav
        last edited by

        Hi There,

        I believe we received a support ticket via our support channel. We were able to investigate the issue with the items you provided, and just wanted to follow up with your post here as well for the sake of building community knowledge:

        I took a look through your templater-options.json​ file which is a configuration for Templater’s main panel and preferences. First, when using the Templater CLI, you’ll want to make sure to quit and exit AE so that it’s not running. If you have it running while you attempt to launch via the CLI then there are conflicting configurations — the GUI configuration and the CLI configuration. So they are kind of mutually exclusive.

        Now, one thing to note is that the tasks​ object has two properties set to true​ in your templater-options.json​ file. You can only ever have one option set there. One task is to enable the bot, while another is to replicate a batch. Think of those properties as being “mapped” to the buttons in the main Templater GUI. You tell what the Bot to do in the prefs​ objects under the bot​ sub object — specifically the action_render​ and action_replicate​. So, my suggestion is to set the replicate​ property in the tasks​ object to false, and leave the action_replicate​ to true and the action_render​ to false.

        Also, I would like to see the exact Powershell incantation you are using to perform the launch. If you want to enable bot from the command line, you will need to use the -ui​ flag because enabling Bot requires AE’s GUI open up.

        Please let me know if this helps.

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