Page 1 of 1

fetching live input data -> viewport update

Posted: November 18th, 2008, 9:05 pm
by berniebernie
Would this be remotely possible without the use of a plug-in ?

Can javascript 'catch' a stream of data in the background (or even read from a file periodically) and update the viewport without a manual user update ?

thanks

mlk

Re: fetching live input data -> viewport update

Posted: November 19th, 2008, 3:04 am
by Paul Tuersley
Quite possibly. You can use the app.scheduleTask() method to repeatedly execute code after a specified delay. So it should be possible to get it to periodically read a text file, update the project accordingly and do a render.

Paul