Forum: Poser - OFFICIAL


Subject: Need help creating a Poser python script

MeshWorks opened this issue on Jan 12, 2019 ยท 3 posts


MeshWorks posted Wed, 16 January 2019 at 6:44 PM

bagginsbill posted at 4:43PM Wed, 16 January 2019 - #4343701

You will need to make two files - a .pz2 file and a .py file. They should be in the same folder.

I used the name KrownProducts.pz2 and KrownProducts.py - you can, of course, use any names you like but you'll need to pay attention to where the name of the .py file is used inside the .pz2 file and synchronize them.

In your .pz2 file, put this:

{
  version
  {
      number 6
  }
  runPythonScript "KrownProducts.py"
}

In your .py file, put this:

import webbrowser

url = "http://www.krown-products.net/meshworks/Products/Manuals/KPL-CobraMotorhome.html"
webbrowser.open(url)

That's exactly what I was needing. Thank you so much bagginsbill !