<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hadn't noticed ofTable(), thanks!<br>
I am writing the scripts straight into the ofelia object. I guess
you mean single clicking, since with a single click the editor
opens up.</p>
<p>Thanks for the example too!<br>
</p>
<div class="moz-cite-prefix">On 22/8/20 7:32 μ.μ., Esteban Viveros
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJQqjJSf+aWpbCoXsUVFvwA3EEPa=Fiikck3CFxHk1G4-9CQmg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello!
<div><br>
</div>
<div>If you are in ofelia 3 you can script like you did double
clicking in ofelia object and writing your script. <br>
</div>
<div><br>
</div>
<div>In ofelia object you can use ofTable() or to interact with
pd arrays ofArray() see patch example.</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Em sáb., 22 de ago. de 2020 às
12:48, Alexandros <<a href="mailto:adrcki@gmail.com"
moz-do-not-send="true">adrcki@gmail.com</a>> escreveu:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm
trying to write some Lua scripts in [ofelia] and I don't know
how to<br>
create an array, since arrays in Lua are written with curly
brackets,<br>
which are not allowed in Pd.<br>
<br>
For example, I'd like to create an array like this:<br>
<br>
local tab = {}<br>
<br>
and then populate it like this:<br>
<br>
for i=1,161<br>
do<br>
tab[i] = ofRandom(0,255)<br>
end<br>
<br>
Any ideas?<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank"
moz-do-not-send="true">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a
href="https://lists.puredata.info/listinfo/pd-list"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div><span
style="color:rgb(0,0,0);background-color:transparent;font-family:"times
new roman","new york",times,serif">
<div><span
style="font-family:arial,helvetica,sans-serif;background-color:transparent"> </span><span
style="font-family:arial,helvetica,sans-serif;background-color:transparent;color:rgb(34,34,34)">Esteban
Viveros</span></div>
<div><span
style="font-family:arial,helvetica,sans-serif;background-color:transparent;color:rgb(34,34,34)"><br>
</span></div>
</span>
<div style="background-color:transparent"><font size="1"
color="#0b5394"><font color="#0b5394"><a
href="http://www.estebanviveros.com"
target="_blank" moz-do-not-send="true">www.estebanviveros.com</a></font></font></div>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>