Old 10-14-2014, 08:51 AM   #1
SaschArt
Human being with feelings
 
SaschArt's Avatar
 
Join Date: Aug 2013
Posts: 236
Default Keep variables after replay

Hello, is any way to keep old variables values on js script after replay ?
SaschArt is offline   Reply With Quote
Old 10-14-2014, 09:02 AM   #2
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

If I understand correctly:

Quote:
The code in the @init section gets executed on effect load, on samplerate changes, and on start of playback. If you wish this code to not execute on start of playback, you can set ext_noinit to 1.0, and it will only execute on load or samplerate change (and not on playback start/stop).
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 10-15-2014, 02:20 AM   #3
SaschArt
Human being with feelings
 
SaschArt's Avatar
 
Join Date: Aug 2013
Posts: 236
Default

Exactly what I want, THANKS. One more question, is any way to empty an array ?
SaschArt is offline   Reply With Quote
Old 10-15-2014, 02:54 AM   #4
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,889
Default

Quote:
Originally Posted by SaschArt View Post
Exactly what I want, THANKS. One more question, is any way to empty an array ?
Code:
memset(address, newvalue, sizeofarray);
(although there aren't actually any arrays as such, just an enormous chunk of memory)
IXix is offline   Reply With Quote
Old 10-16-2014, 08:41 AM   #5
SaschArt
Human being with feelings
 
SaschArt's Avatar
 
Join Date: Aug 2013
Posts: 236
Default

Thanks, working now
SaschArt is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:26 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.