Forum: Poser Python Scripting


Subject: How to call ImageMagick from PoserPython

HartyBart opened this issue on Aug 03, 2021 ยท 23 posts


HartyBart posted Wed, 04 August 2021 at 2:46 PM

I've now had time to start to make some actual tests. This simplest-possible script works in having Poser run a command-line. Windows Notepad opens, the file is not present so is created, and on a save Notepad offers to save it into Poser 11's exe directory.

import poser
import subprocess

cmd = "notepad myfile2.txt"
run_cmd = subprocess.call(cmd, shell=True)

I could be wrong, but I get the feeling that the square brackets and commas are only needed in Python 2.7 and Poser 11 if dealing with file paths?



Learn the Secrets of Poser 11 and Line-art Filters.