[etoys-dev] Etoys: MorphicExtras-kfr.41.mcz

karl ramberg karlramberg at gmail.com
Tue Oct 18 05:09:22 EDT 2011


On Tue, Oct 18, 2011 at 10:47 AM, Bert Freudenberg <bert at freudenbergs.de> wrote:
> On 18.10.2011, at 00:57, Derek O'Connell wrote:
>
>> On 17/10/11 23:34, karl ramberg wrote:
>>> I committed the code changes you sent and a little fix I had to the
>>> squeaksource repository. http://www.squeaksource.com/WebCamMorph
>>>
>>> I had turned the waiting for camera start up down to 1 sec. That
>>> caused trouble. Now I use 2 sec and thing seems to work fine.
>>>
>>>
>>> I have added intoWorld: and outOfWorld: methods to the version for
>>> Etoys, so the web cam shuts down when you leave the project. But
>>> these methods get called when adding TransformationMorph to the web
>>> cam.
>>
>> I'm not familiar with into/outOfWorld: but are they being used to cover the case when the webcam morph is deleted? Wouldn't they also cause problems in other situations, eg, dragging? I'm guessing the camera should be turned off when the morph enters the bin, when the project is exited and on exiting etoys. Latter case at least should already be catered for. Trying to re-instate a camera on start-up might fail on a different machine with a different camera (or more than one video device).
>
> Why would it fail with a different camera?
>
> It might fail if there is no camera, but the code should take that into account. When I save a project with a "running" camera and load it on another machine that has a camera too, it should run again. If there is no camera then it can't, of course. If there are multiple cameras, it would hopefully pick a default.

Is there any way to avoid  intoWorld: and outOfWorld: getting called
when flexing ?

Karl


More information about the etoys-dev mailing list