What are readables?

Introduce yourself to the Algodoo community!

What are readables?

Postby egkteam » Mon May 21, 2012 4:20 pm

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:
My Algobox account (inactive)
P.S. My real name is Emmanuel so call me that way.
egkteam
 
Posts: 91
Joined: Mon May 21, 2012 3:49 pm
Location: East Java, Indonesia

Re: What are readables?

Postby tatt61880 » Mon May 21, 2012 4:38 pm

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.
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).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan

Re: What are readables?

Postby egkteam » Mon May 21, 2012 4:46 pm

What can we do with that? :?
My Algobox account (inactive)
P.S. My real name is Emmanuel so call me that way.
egkteam
 
Posts: 91
Joined: Mon May 21, 2012 3:49 pm
Location: East Java, Indonesia

Re: What are readables?

Postby electronicboy » Mon May 21, 2012 7:59 pm

I think readable, basically allows us to read values which we could not read before.

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?

Postby mold999 » Fri Jun 08, 2012 2:27 am

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

Ain't nobody got
thyme fo dat.
User avatar
mold999
 
Posts: 225
Joined: Sun Jan 02, 2011 1:35 am
Location: [176436, 3763234]

Re: What are readables?

Postby Nxdt » Fri Jun 08, 2012 7:46 pm

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.
User avatar
Nxdt
 
Posts: 1019
Joined: Mon Aug 31, 2009 6:32 pm
Location: Scotland!

Re: What are readables?

Postby egkteam » Mon Jun 11, 2012 10:57 am

:shock: :shock: :shock: REALLY?! :shock: :shock: :shock:
My Algobox account (inactive)
P.S. My real name is Emmanuel so call me that way.
egkteam
 
Posts: 91
Joined: Mon May 21, 2012 3:49 pm
Location: East Java, Indonesia

Re: What are readables?

Postby Xray » Mon Sep 10, 2012 4:49 pm

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
User avatar
Xray
 
Posts: 500
Joined: Sun Jun 17, 2012 6:12 am
Location: USA

Re: What are readables?

Postby Ivan » Mon Sep 10, 2012 9:13 pm

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.
Image
User avatar
Ivan
 
Posts: 202
Joined: Tue Oct 06, 2009 2:01 pm
Location: Croatia

Re: What are readables?

Postby Xray » Mon Sep 10, 2012 10:23 pm

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?
User avatar
Xray
 
Posts: 500
Joined: Sun Jun 17, 2012 6:12 am
Location: USA

Re: What are readables?

Postby Ivan » Tue Sep 11, 2012 10:15 am

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.
Image
User avatar
Ivan
 
Posts: 202
Joined: Tue Oct 06, 2009 2:01 pm
Location: Croatia

Re: What are readables?

Postby Xray » Tue Sep 11, 2012 4:57 pm

Thanks again, Ivan! :thumbup:
User avatar
Xray
 
Posts: 500
Joined: Sun Jun 17, 2012 6:12 am
Location: USA

Re: What are readables?

Postby Ivan » Tue Sep 11, 2012 9:45 pm

You're welcome. :)
Image
User avatar
Ivan
 
Posts: 202
Joined: Tue Oct 06, 2009 2:01 pm
Location: Croatia


Return to Introduction

Who is online

Users browsing this forum: No registered users and 4 guests

cron