Search found 45 matches

by 3DfromNULL
2021-Apr-19 11:21
Forum: Tutorials & Tips
Topic: 0040. Tips for Python novice
Replies: 0
Views: 21374

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...
by 3DfromNULL
2021-Apr-19 8:30
Forum: Tutorials & Tips
Topic: 0030. Predefined Classes
Replies: 0
Views: 21490

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 ) ...
by 3DfromNULL
2021-Apr-19 2:13
Forum: Tutorials & Tips
Topic: 0020. The first step to manipulate trueSpace using ptsxpy
Replies: 0
Views: 22455

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...
by 3DfromNULL
2021-Apr-17 3:03
Forum: Tutorials & Tips
Topic: 0010. Installation and simple test
Replies: 0
Views: 22781

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...
by 3DfromNULL
2021-Apr-12 10:06
Forum: Sample works and scripts by the author
Topic: Water ripple (2021)
Replies: 0
Views: 19872

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...
by 3DfromNULL
2021-Apr-12 1:53
Forum: Announcement
Topic: ptsxpy 0.0.11 released
Replies: 0
Views: 24396

ptsxpy 0.0.11 released

Released ptsxpy 0.0.11. Please read "Download - Change Log" for details.
by 3DfromNULL
2021-Apr-11 2:09
Forum: Sample works and scripts by the author
Topic: Widget sample emulation (2021)
Replies: 0
Views: 19378

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....
by 3DfromNULL
2021-Mar-31 5:58
Forum: Announcement
Topic: ptsxpy 0.0.10 released
Replies: 0
Views: 17614

ptsxpy 0.0.10 released

Released ptsxpy 0.0.10. Please read "Download - Change Log" for details.
by 3DfromNULL
2021-Mar-25 11:05
Forum: Sample works and scripts by the author
Topic: Simple Material Shading (2021)
Replies: 0
Views: 19871

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/...
by 3DfromNULL
2021-Mar-24 8:20
Forum: Sample works and scripts by the author
Topic: Walking Robot (2021)
Replies: 0
Views: 19816

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...