<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Theo de Ridder schreef:
<blockquote cite="mid:8AB0A9CF-0BB5-4EF2-8ABC-BA56489DBFE3@planet.nl"
 type="cite">
  <pre wrap="">Indeed, we talked about this 2 years ago.
At that time I have tried all sorts of tricks in my blendit(tor)
with faking and mapping timer events on other events.
  </pre>
</blockquote>
I've been through the same jungle with SPE.<br>
<blockquote cite="mid:8AB0A9CF-0BB5-4EF2-8ABC-BA56489DBFE3@planet.nl"
 type="cite">
  <pre wrap="">Finally it is not threads (I don't like them) but the right set
of asynchronous event handlers which are now far too
primitive in Blender.
  </pre>
</blockquote>
I am quite conservative in using threads, but in this case I do think
it would be good. Moreover it would open other possibilities besides
asynchronous socket usage.<br>
<blockquote cite="mid:8AB0A9CF-0BB5-4EF2-8ABC-BA56489DBFE3@planet.nl"
 type="cite">
  <pre wrap="">
For the moment there is another quite clean approach:
let Blender run in a looping frame animation,
and use the framechange as a timer;
during such a loop you can just do all the editing
in Blender with real time visual feedbacks,
its not hard real time but
good and asynchronous enough for a lot of
asynchronous socket usage.
  </pre>
</blockquote>
Yes, I've tested that too, but of course this means that the blender
drawing doesn't contain keyframes or a frame animation with which you
want to interact. That is why I finally chose for the redraw hack which
works fine within one frame.<br>
<br>
Anyway these are hacks. A proper solution would be nice.<br>
Stani<br>
<blockquote cite="mid:8AB0A9CF-0BB5-4EF2-8ABC-BA56489DBFE3@planet.nl"
 type="cite">
  <pre wrap="">
Theo


On 18 mrt 2008, at 10:09, Stani wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Toni Alatalo schreef:
    </pre>
    <blockquote type="cite">
      <pre wrap="">On Mar 17, 2008, at 11:31 PM, Willian Padovani Germano wrote:

i've repeated this same thing for 2 years now always when this comes
up, so i guess i have to repeat it again :o

      </pre>
    </blockquote>
    <pre wrap="">Yes I remember you telling me that at a python meeting two years  
ago. So
I thought that this has been implemented long time already.
    </pre>
    <blockquote type="cite">
      <pre wrap="">IIRC Ton said that the place for the timer hook is there in the core
already, made by him I think, when he(?) added Verse basics too. or
perhaps by Jiri as he did the Verse work. i think he said something
along the lines of 'there are 3 kind of xxx, 1 for blender own  
stuff, 2
for py and 3 for verse', and that it's just a matter of exposing that
in the api somehow and we'll have blender calling scripts to update
periodically.

      </pre>
    </blockquote>
    <pre wrap="">I hope this could be verified and if true, implemented.
Stani
_______________________________________________
Bf-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Bf-python@blender.org">Bf-python@blender.org</a>
<a class="moz-txt-link-freetext" href="http://lists.blender.org/mailman/listinfo/bf-python">http://lists.blender.org/mailman/listinfo/bf-python</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
Bf-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Bf-python@blender.org">Bf-python@blender.org</a>
<a class="moz-txt-link-freetext" href="http://lists.blender.org/mailman/listinfo/bf-python">http://lists.blender.org/mailman/listinfo/bf-python</a>
  </pre>
</blockquote>
<br>
</body>
</html>