Forum: Poser Python Scripting


Subject: Mac Python TK Fix

Basis3D opened this issue on Jun 12, 2002 ยท 6 posts


Basis3D posted Wed, 12 June 2002 at 2:49 PM

Attached Link: http://www.pcbos.nl

Oddly enough, after a couple of hours of playing around with it I'm able to answer my own question about this Python fix. I'll post the results here in hopes of helping other Mac users.

First of all, IT REALLY WORKS!!! And it's an overall fix for Python in Poser not just for the author's Environment Creator script.

I'm not a Python expert by any means so forgive me if what I'm about to say could be said better by those who know much more than me ...

The apparent problem with Python on the Mac is that the second time you try to run a script you most likely will get a "TCL Missing" error and the script won't run. If you've created a button for the script in the Python button window then the only solution is to again create a button before running the script successfully. Very buggy and anti-productive.

After trying different ways of installing the fix, some of which gave me some exasperating errors, I believe I finally figured out how this is supposed to be installed. The first problem I had is that the author is apparently using a Mac set up for the Netherlands. "Systeemmap" apparently means "System Folder" and "Extensis" apparently means "Extensions."

Here's how I successfully installed the fix ...

  1. Drag the folder called "Tool Command Language" directly into your OS 9 Extensions folder (inside your Mac OS 9.x System Folder).

  2. In the folder where Poser is installed, navigate down to your Runtime/Python/Lib folder.

  3. Inside the Lib folder are two folders called "tcl8.3" and "tk8.3." Copy (don't just move them) both folders into your "Tool Command Language" folder inside your Extensions folder (in your Mac OS 9.x System Folder).

  4. Navigate to your Runtime/Python folder. Drag the folder named "Lights" directly into your Python folder.

  5. Reboot (I don't know if it's necessary but one usually reboots after adding things to the Extensions folder.

  6. Restart Poser.

  7. Either from your Python button window or from the "Run Python Script..." menu item, run the author's script called "InstallCreatorsDeLuxe.py" and test to see if those nasty "TCL Missing" errors have gone away. You might have to restart Poser before testing but I'm not sure about that.

THE DISCLAIMER
The procedure above, of course, should be done with some caution and I can't guarantee your success or anticipate any problems you might have. Please contact the author, pcbos (Paul Christiaan) if you have any questions. A link to his Web site is attached for your convenience. The Python fix is linked at the very bottom of his page on the right.

I was thoroughly confused about exactly what this fix was and how to install it. So far I'm delighted that Paul has figured out a fix that seems to work flawlessly thus far. Kudos!!!

There are probably others who are just as confused as I was. Hope this helps.

:-)

 Poser 2010 • Poser 8 • MacPro Desktop • Quad-Core Intel Xeon • 10 GB • Snow Leopard • Windows XP