What are readables?
13 posts • Page 1 of 1
What are readables?
I was just searching at these forums when i found that you can use readables for something. What are those?
Sorry, I'm new here.
Sorry, I'm new here.
- egkteam
- Posts: 91
- Joined: Mon May 21, 2012 3:49 pm
- Location: East Java, Indonesia
Re: What are readables?
egkteam wrote:I was just searching at these forums when i found that you can use readables for something. What are those?
Sorry, I'm new here.
Welcome to the forum.
With Algodoo v2.0.2 b15, polygon's surfaces require "readable" to get info via thyme scripting.
- Code: Select all
(e)=>{print((readable(e.this)).surfaces)}
With Algodoo v2.0.2 b14 or earlier, pos/angle etc. also required "readable" to read the value.
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-
tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
Re: What are readables?
What can we do with that?
- egkteam
- Posts: 91
- Joined: Mon May 21, 2012 3:49 pm
- Location: East Java, Indonesia
Re: What are readables?
I think readable, basically allows us to read values which we could not read before.
I am not sure though.
I am not sure though.
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: What are readables?
Uh, hold on...
So, you can spawn the polygons easier by just specifying the positions of the lines and angles?
I'm not sure I quite understand what you mean.
So, you can spawn the polygons easier by just specifying the positions of the lines and angles?
I'm not sure I quite understand what you mean.
Phundementalism?
Ain't nobody got thyme fo dat.
Ain't nobody got thyme fo dat.
-
mold999 - Posts: 225
- Joined: Sun Jan 02, 2011 1:35 am
- Location: [176436, 3763234]
Re: What are readables?
mold999 wrote:Uh, hold on...
So, you can spawn the polygons easier by just specifying the positions of the lines and angles?
I'm not sure I quite understand what you mean.
You can list the coordinates of each vertice (Corners) to spawn polygons. If you select a polygon and hit Ctrl C, then in a text editor press Ctrl V, you can see the code needed to spawn and identical polygon.
-
Nxdt - Posts: 1019
- Joined: Mon Aug 31, 2009 6:32 pm
- Location: Scotland!
Re: What are readables?
REALLY?!
- egkteam
- Posts: 91
- Joined: Mon May 21, 2012 3:49 pm
- Location: East Java, Indonesia
Re: What are readables?
tatt61880 wrote:egkteam wrote:I was just searching at these forums when i found that you can use readables for something. What are those?
Sorry, I'm new here.
Welcome to the forum.
With Algodoo v2.0.2 b15, polygon's surfaces require "readable" to get info via thyme scripting.
- Code: Select all
(e)=>{print((readable(e.this)).surfaces)}
With Algodoo v2.0.2 b14 or earlier, pos/angle etc. also required "readable" to read the value.
In the latest Algodoo version, is readable used ONLY for getting polygon surfaces, or can it be used to view other things that normally were not accessable in older versions? If other things, could you please list all of them here?
Thanks
-
Xray - Posts: 500
- Joined: Sun Jun 17, 2012 6:12 am
- Location: USA
Re: What are readables?
With readable you can get layer, surfaces, polyTrans and relPoint (lasers). I think that's all you need readable for in 2.0.2 b15.
-
Ivan - Posts: 202
- Joined: Tue Oct 06, 2009 2:01 pm
- Location: Croatia
Re: What are readables?
Ivan wrote:With readable you can get layer, surfaces, polyTrans and relPoint (lasers). I think that's all you need readable for in 2.0.2 b15.
Ivan - Thanks very much for your reply! I'm not familiar with polyTrans and relPoint. What are they used for, and where can I find them? I just now looked at the Script Menu for a laser, and I do not see either of those parameters. Oh, and while we happen to be discussing lasers, could you please explain what the parameter "MaxRays" is, and how it can be used in a scene?
-
Xray - Posts: 500
- Joined: Sun Jun 17, 2012 6:12 am
- Location: USA
Re: What are readables?
polyTrans is used on resized polygons. When resizing an polygon, instead of changing surfaces, Algodoo adds the polyTrans property, which is [<height factor>, <horizontal leaning>, <vertical leaning>, <width factor>].
relPoint is the position of the laser relative to the position of the center of its geometry.
Till now, I didn't know about maxRays, but now I've researched it. It is the maximum number of rays (straight lines) which will be displayed when the laser hits something.
Every time the primary ray hits something that is refractive, it will be refracted into 12 (or 24) new colored rays, even when it stays white after reflecting. Every time a secondary ray refracts, you get 1 new ray.
Maybe a smaller value (like 1) would be useful to make scenes less laggy.
relPoint is the position of the laser relative to the position of the center of its geometry.
Till now, I didn't know about maxRays, but now I've researched it. It is the maximum number of rays (straight lines) which will be displayed when the laser hits something.
Every time the primary ray hits something that is refractive, it will be refracted into 12 (or 24) new colored rays, even when it stays white after reflecting. Every time a secondary ray refracts, you get 1 new ray.
Maybe a smaller value (like 1) would be useful to make scenes less laggy.
-
Ivan - Posts: 202
- Joined: Tue Oct 06, 2009 2:01 pm
- Location: Croatia
Re: What are readables?
Thanks again, Ivan!
-
Xray - Posts: 500
- Joined: Sun Jun 17, 2012 6:12 am
- Location: USA
Re: What are readables?
You're welcome.
-
Ivan - Posts: 202
- Joined: Tue Oct 06, 2009 2:01 pm
- Location: Croatia
13 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests