What version of python is tsxpython using?
-
BNG
- Chief Warrant Officer
- Posts: 684
- Joined: 16 Oct 2009, 03:26
- Type the number ten into the box: 0
- Location: Texas
What version of python is tsxpython using?
None of the python scripts seem to work on the 6.6 modelside of 7.6. There are a few scripts that seem to start running, but I typically get a tsp2.py or greater error message in the output window?
I have copied the python scripts to my TS\folder as suggested in articles that I've found, but the TS 6.6 script editor just doesn't seem to do much with existing python scripts. Is python broken in 7.6? I'm using xp pro 32bit on one system a destktop and win 7 64bit on a laptop. Has python ever really worked in any version of Truespace or Gamespace? Thanks, Leroy.
I have copied the python scripts to my TS\folder as suggested in articles that I've found, but the TS 6.6 script editor just doesn't seem to do much with existing python scripts. Is python broken in 7.6? I'm using xp pro 32bit on one system a destktop and win 7 64bit on a laptop. Has python ever really worked in any version of Truespace or Gamespace? Thanks, Leroy.
Casual Truespace 3D modeling hobbyist. My Truespace blog and simple 3d Modeling Tutorials for Casual Model Makers.
-
BNG
- Chief Warrant Officer
- Posts: 684
- Joined: 16 Oct 2009, 03:26
- Type the number ten into the box: 0
- Location: Texas
Re: What version of python is tsxpython using?
Just an update on the issue. I got several of the original TS python scripts to actually run on the modelside of 7.6x. Apparently, python scripts are version specific. For those of us wanting to use some of the original TS python scripts can try installing the 2.2.3 release of python. I looked at the creation date on the scripts themselves and saw a date of 2007, so I searched the python site and downloaded the closest version release to the script info dates. Here's a screeny of a running script in TS.
I'm not sure but it looks like the TSXpython document release date info was June 1998, but the python version is use at that time appears to be 1.5.2; it would not install under the 64 bit version of Windows, so I'll try installing on my 32bit XP pro installation on another PC. Update: It did install under WIN XP. Also, I found this web page on extending python for Truespace.
PS: Does anyone know if we can install more then one version of python or would one version conflict with another? Thanks, Leroy.
I'm not sure but it looks like the TSXpython document release date info was June 1998, but the python version is use at that time appears to be 1.5.2; it would not install under the 64 bit version of Windows, so I'll try installing on my 32bit XP pro installation on another PC. Update: It did install under WIN XP. Also, I found this web page on extending python for Truespace.
PS: Does anyone know if we can install more then one version of python or would one version conflict with another? Thanks, Leroy.
Last edited by BNG on 03 Oct 2013, 14:11, edited 2 times in total.
Casual Truespace 3D modeling hobbyist. My Truespace blog and simple 3d Modeling Tutorials for Casual Model Makers.
-
v3rd3
- Lieutenant Commander
- Posts: 1191
- Joined: 21 May 2009, 20:04
Re: What version of python is tsxpython using?
I have not tried this with Python but it is possible in some cases to have multiple development environments on the same computer. If it is not possible to set up multiple times in one user account, you can set up multiple user accounts on the same pc and just run your dev tool installs in them.
Many language setups have predefined paths to include libraries etc which allow you to do the multi setup in one user account.
Sorry if this is not making sense. I am really tired right now.
Many language setups have predefined paths to include libraries etc which allow you to do the multi setup in one user account.
Sorry if this is not making sense. I am really tired right now.
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: What version of python is tsxpython using?
Yes, you can. I have python 2.6, 2.7 and 3.3 installed.BNG wrote:Just an update on the issue. I got one of the python scripts to actually run on the modelside of 7.6x. Apparently, python scripts are version specific. For those of us wishing to use some of the original TS python scripts try installing the 2.2.3 release of python. I looked at the creation date on the scripts themselves and saw a date of 2007, so I searched the python site and downloaded the closest version release to the script info dates. Here's a screeny of a running script in TS.
PS: Does anyone know if we can install more then one version of python or would one version conflict with another? Thanks, Leroy.
-
BNG
- Chief Warrant Officer
- Posts: 684
- Joined: 16 Oct 2009, 03:26
- Type the number ten into the box: 0
- Location: Texas
Re: What version of python is tsxpython using?
With the exception of Truespace I don't really have any need for later versions of python, so I deleted them all except for python 2.2.3. The net result was positive as the original TS included scripts now seem to run without issue where in the past none wanted to run at all. Considering I mostly use the older modeling tools I may actually be able to use some of the features of TSXpython after all.
Casual Truespace 3D modeling hobbyist. My Truespace blog and simple 3d Modeling Tutorials for Casual Model Makers.
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: What version of python is tsxpython using?
That's weird that you had to install python to get it to work. Truespace python is embedded and is supposed to stand on it's own.BNG wrote:With the exception of Truespace I don't really have any need for later versions of python, so I deleted them all except for python 2.2.3. The net result was positive as the original TS included scripts now seem to run without issue where in the past none wanted to run at all. Considering I mostly use the older modeling tools I may actually be able to use some of the features of TSXpython after all.
-
BNG
- Chief Warrant Officer
- Posts: 684
- Joined: 16 Oct 2009, 03:26
- Type the number ten into the box: 0
- Location: Texas
Re: What version of python is tsxpython using?
Oddly, I did receive the error messages. If I remember correctly the other python installations were needed for the various Blender 3D's that I had previously been trying to use for 3D modeling.clintonman wrote:That's weird that you had to install python to get it to work. Truespace python is embedded and is supposed to stand on it's own.BNG wrote:With the exception of Truespace I don't really have any need for later versions of python, so I deleted them all except for python 2.2.3. The net result was positive as the original TS included scripts now seem to run without issue where in the past none wanted to run at all. Considering I mostly use the older modeling tools I may actually be able to use some of the features of TSXpython after all.
PS: Is it possible that TS was trying to use another version of python causing TS to display the original error messages? Thanks, Leroy.
Casual Truespace 3D modeling hobbyist. My Truespace blog and simple 3d Modeling Tutorials for Casual Model Makers.
-
BNG
- Chief Warrant Officer
- Posts: 684
- Joined: 16 Oct 2009, 03:26
- Type the number ten into the box: 0
- Location: Texas
Re: What version of python is tsxpython using?
Is it possible to auto load a python script? I ask because it seems that the "import trueSpace" statement must be loaded before some scripts will actual execute. For example:
import trueSpace
CreateCube = doc.CreateCube(5, 1, 2.5, 1)
will yield an error message, but if the first entry is run by it self the second line will create a cube in the scene. I also noticed that once the first line is run once it is no longer required and the second line executes just fine. Is it because the first line only needs to be run once? Thanks Leroy.
import trueSpace
CreateCube = doc.CreateCube(5, 1, 2.5, 1)
will yield an error message, but if the first entry is run by it self the second line will create a cube in the scene. I also noticed that once the first line is run once it is no longer required and the second line executes just fine. Is it because the first line only needs to be run once? Thanks Leroy.
Casual Truespace 3D modeling hobbyist. My Truespace blog and simple 3d Modeling Tutorials for Casual Model Makers.
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: What version of python is tsxpython using?
Here is code that works for me:BNG wrote:Is it possible to auto load a python script? I ask because it seems that the "import trueSpace" statement must be loaded before some scripts will actual execute. For example:
import trueSpace
CreateCube = doc.CreateCube(5, 1, 2.5, 1)
will yield an error message, but if the first entry is run by it self the second line will create a cube in the scene. I also noticed that once the first line is run once it is no longer required and the second line executes just fine. Is it because the first line only needs to be run once? Thanks Leroy.
Code: Select all
import trueSpace
doc = trueSpace.GetActiveDocument()
CreateCube = doc.CreateCube(5, 1, 2.5, 1)
trueSpace.Stop()I think I found it. It was an old website not a manual. The earlier years on this archive have it.
http://web.archive.org/web/200105010000 ... 3dfuel.com"
-
BNG
- Chief Warrant Officer
- Posts: 684
- Joined: 16 Oct 2009, 03:26
- Type the number ten into the box: 0
- Location: Texas
Re: What version of python is tsxpython using?
Very useful Clinton thank you I see quite a few python scripts to work from. I really want to learn more about python as far as Truespace is concerned, but the vast majority of available information always seems to lead to Blender usage rather then Truespace. I am amazed at what seems possible using python to add extra functions to Caligari modeling software. Leroy.
Casual Truespace 3D modeling hobbyist. My Truespace blog and simple 3d Modeling Tutorials for Casual Model Makers.
-
BNG
- Chief Warrant Officer
- Posts: 684
- Joined: 16 Oct 2009, 03:26
- Type the number ten into the box: 0
- Location: Texas
Re: What version of python is tsxpython using?
Does anyone have the python scripts for the Galactic python plugin listed on the web archive? I tried to download the zipped scripts, but the link appears to be dead now. I'm trying to collect as many of the python scripts as I can find in the hopes that I can edit some new plugins for Truespace as I learn how to make the dialog boxes and change parameters for new python based plugins for TS. Thanks, Leroy.
Casual Truespace 3D modeling hobbyist. My Truespace blog and simple 3d Modeling Tutorials for Casual Model Makers.
-
stan
- Master Chief Petty Officer
- Posts: 584
- Joined: 21 May 2009, 17:20
Re: What version of python is tsxpython using?
I don't know if you have this stuff.
Here is the docs from ts6.5 install.
For dialogs to work you must put some scripts and dll into the 'ts' directory. You test dialogs with dlgtest.py or GUI test.py.
Here is the docs from ts6.5 install.
For dialogs to work you must put some scripts and dll into the 'ts' directory. You test dialogs with dlgtest.py or GUI test.py.
- Attachments
-
- GuiTest.zip
- (1.09 KiB) Downloaded 276 times
-
- PythonDoc.rar
- (519.81 KiB) Downloaded 275 times
-
BNG
- Chief Warrant Officer
- Posts: 684
- Joined: 16 Oct 2009, 03:26
- Type the number ten into the box: 0
- Location: Texas
Re: What version of python is tsxpython using?
Thanks Stan, Leroy.
Casual Truespace 3D modeling hobbyist. My Truespace blog and simple 3d Modeling Tutorials for Casual Model Makers.
