V4 beta Nov-18-2017 available now

 From:  Max Smirnov (SMIRNOV)
8682.82 In reply to 8682.76 
Hi Michael

I tested my Cloth script today.
It hangs on infinite loop at line 75:
code:
while ( moi.ui.commandUI.runAnimation ) { moi.ui.commandUI.calcFrame(); }

Interface is inactive, viewports not updating.
Should I add something like moi.ui.update() inside the loop, or rewrite this script using setInterval function?

UPD:
I rewrote the script using setInterval function. Now it runs about 50-60% faster than old one with MoI v3.


>>So you mean you want to make a tag that loads a file from the appdata directory?
Yes.
In fact I would like to read files from any user directory, but I think its impossible in MacOS.

>>How about if I add support in the moi:// protocol handler so you could do moi://appdata/Objects/Filename.png as the URL, similar to how moi://ui and moi://commands URLs can be used currently.

moi://appdata is a good idea
Thank you!

EDITED: 23 Nov 2017 by SMIRNOV