Search found 45 matches
- 2021-Apr-19 11:21
- Forum: Tutorials & Tips
- Topic: 0040. Tips for Python novice
- Replies: 0
- Views: 26402
0040. Tips for Python novice
Please read also " Quick Start " page. Comment # This whole line is comment, and ignored by Python interpreter. import ptsxpy as p # from the sharp sign to the new line is also comment # But the sentence written before (i.e. left side of) the sharp sign is interpreted by Python. Indentatio...
- 2021-Apr-19 8:30
- Forum: Tutorials & Tips
- Topic: 0030. Predefined Classes
- Replies: 0
- Views: 26636
0030. Predefined Classes
The file "ptsxpydef1.py" (you installed in tsx\ptsx2py\ or tsx\ptsx3py\ folder) defines convenient classes to bridge between your python scripts and tsxAPI (C++) functions. In the previous example , we created a cube. cb1 = p.CreateCube( 1, 2., 2., 2. ) p.SceneAddObject( cb1, e_tsxFALSE ) ...
- 2021-Apr-19 2:13
- Forum: Tutorials & Tips
- Topic: 0020. The first step to manipulate trueSpace using ptsxpy
- Replies: 0
- Views: 27574
0020. The first step to manipulate trueSpace using ptsxpy
First of all, make a text file, rename it to "cube1.py", copy&paste the code below to it. (You can also keep the file extension to ".txt". Changing to ".py" allows to give your text editor a hint to know how to syntax-highlight) import ptsxpy as p cb1 = p.CreateCube...
- 2021-Apr-17 3:03
- Forum: Tutorials & Tips
- Topic: 0010. Installation and simple test
- Replies: 0
- Views: 27865
0010. Installation and simple test
Installation of ptsxpy to your trueSpace is done only copying several files to TSX folder of trueSpace. Any installer is not needed. This topic introduces how to install and to do simple test. Please read also " Download " and " Quick Start" " in the ptsxpy main site. images...
- 2021-Apr-12 10:06
- Forum: Sample works and scripts by the author
- Topic: Water ripple (2021)
- Replies: 0
- Views: 25002
Water ripple (2021)
This script generates an animation of circular waves on water surface. There might be several way to make it using trueSpace's feature (e.g. metaball, lattice, point translation, etc.). In this example, it uses NURBS cylinder. images/myimg/postimg/wave1/img1a.jpg Fig.1. Rendered image (added bump ma...
- 2021-Apr-12 1:53
- Forum: Announcement
- Topic: ptsxpy 0.0.11 released
- Replies: 0
- Views: 32428
ptsxpy 0.0.11 released
Released ptsxpy 0.0.11. Please read "Download - Change Log" for details.
- 2021-Apr-11 2:09
- Forum: Sample works and scripts by the author
- Topic: Widget sample emulation (2021)
- Replies: 0
- Views: 24572
Widget sample emulation (2021)
This python script (perhaps faithfully) emulates a good old sample C++ code "WdgSample.cpp" included in each trueSpace tSxAPI SDK. images/myimg/postimg/widget/1a.jpg Fig.1. A widget generated near a textured object. The cuboid (colored yellow and green) is a widget generated by the script....
- 2021-Mar-31 5:58
- Forum: Announcement
- Topic: ptsxpy 0.0.10 released
- Replies: 0
- Views: 22859
ptsxpy 0.0.10 released
Released ptsxpy 0.0.10. Please read "Download - Change Log" for details.
- 2021-Mar-25 11:05
- Forum: Sample works and scripts by the author
- Topic: Simple Material Shading (2021)
- Replies: 0
- Views: 25019
Simple Material Shading (2021)
This sample script generate some scene objects with material. images/myimg/postimg/simple_material_shading/1a.jpg Fig. 1. Rendered image images/myimg/postimg/simple_material_shading/2a.png Fig. 2. How to get the rendered image (tS6 and Model side of tS7) images/myimg/postimg/simple_material_shading/...
- 2021-Mar-24 8:20
- Forum: Sample works and scripts by the author
- Topic: Walking Robot (2021)
- Replies: 0
- Views: 25019
Walking Robot (2021)
This script generates a robot walking on the ground of a trueSpace 3D scene using some methods for skeletons and skins. images/myimg/postimg/walking_robot/1b.jpg Fig. 1. Walking robot Following scene images can be got when you stop the script by inserting a line for breaking (e.g. "stop" t...