1. #1
    New Member Follow User Gallery
    Join Date
    Apr 2019
    Posts
    3

    Default Quetion: Is it possible to run ZBrush+zscript from command line?

    Hello there

    I'm finding way how to launch Zbrush and then in same time launch zscript.

    So it should be some .bat file that:
    1) Launch Zbrush and waiting while it will be loaded
    2) Press button with my script

    About launching Zbrush i find information but how to run script automatically after launching zbrush i did not have answer.

    Regards

  2. #2
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    You need to use a zscript that runs automatically without any button presses. So, for example, you can enclose the code you want to run inside an [If...] statement that always evaluates to true:

    [If,1,
    [Note,"Hello world!"]
    ]


    Then all you need to do at the command line is enter the path to ZBrush followed by the path to the zscript (either *.txt or *.zsc):

    "C:\Program Files\Pixologic\ZBrush 2019\ZBrush.exe" "C:\Program Files\Pixologic\ZBrush 2019\ZScripts\Hello.txt"

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •