Page 1 of 1

JavaScript Objects in NAB

PostPosted: Fri Apr 22, 2016 5:02 am
by luishp
I have discovered that it is possible to initialize JavaScript objects in NAB, like this:
Code: Select all
SetVar [myvar] {left:100,top:100,angle:'+=180'}

Then the variable could be passed to a plugin action as a VARREF

I am finishing an advanced Canvas plugin based on Fabric.js with more than 60 new actions.
With this trick now is even possible to add animation features :)
Later on, I will try to develop an Offline DataBase plugin.
More to come.

Re: JavaScript Objects in NAB

PostPosted: Fri Apr 22, 2016 5:12 am
by DELCO
Hello luishp,
That's sounds great !!
Thank you !

Re: JavaScript Objects in NAB

PostPosted: Fri Apr 22, 2016 9:57 am
by farhad2008
hi,
very good
thanks