Page 1 of 1

What are readables?

PostPosted: Mon May 21, 2012 4:20 pm
by egkteam
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. :mrgreen:

Re: What are readables?

PostPosted: Mon May 21, 2012 4:38 pm
by tatt61880
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. :mrgreen:

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.

Re: What are readables?

PostPosted: Mon May 21, 2012 4:46 pm
by egkteam
What can we do with that? :?

Re: What are readables?

PostPosted: Mon May 21, 2012 7:59 pm
by electronicboy
I think readable, basically allows us to read values which we could not read before.

I am not sure though.

Re: What are readables?

PostPosted: Fri Jun 08, 2012 2:27 am
by mold999
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.

Re: What are readables?

PostPosted: Fri Jun 08, 2012 7:46 pm
by Nxdt
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.

Re: What are readables?

PostPosted: Mon Jun 11, 2012 10:57 am
by egkteam
:shock: :shock: :shock: REALLY?! :shock: :shock: :shock:

Re: What are readables?

PostPosted: Mon Sep 10, 2012 4:49 pm
by Xray
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. :mrgreen:

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

Re: What are readables?

PostPosted: Mon Sep 10, 2012 9:13 pm
by Ivan
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.

Re: What are readables?

PostPosted: Mon Sep 10, 2012 10:23 pm
by Xray
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?

Re: What are readables?

PostPosted: Tue Sep 11, 2012 10:15 am
by Ivan
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.

Re: What are readables?

PostPosted: Tue Sep 11, 2012 4:57 pm
by Xray
Thanks again, Ivan! :thumbup:

Re: What are readables?

PostPosted: Tue Sep 11, 2012 9:45 pm
by Ivan
You're welcome. :)