tspring
01-20-2008, 01:45 PM
Bug or feature? I don't know, but JS ignores any line of code that begins with a blank. This means that you can't indent code to make structure easier to see. It would he nice if indenting was allowed.
schwa
01-20-2008, 01:54 PM
Bug or feature? I don't know, but JS ignores any line of code that begins with a blank. This means that you can't indent code to make structure easier to see. It would he nice if indenting was allowed.
I don't think this is true, or at least, I indent JS code for structure and it works fine. Do you have an example?
tspring
01-20-2008, 02:28 PM
Maybe it only happens if you indent slider definitions. Here is the example
http://stash.reaper.fm/oldsb/73824/beat-sync-tremelo-0120
T
EDIT: I verified the behavior of the JS on another JS plugin. Indenting the slider definition causes the slider to disappear when the JS code is recompiled.
By the way, it is impossible to set a slider on multiple lines...
It would be so usefull for "combo" sliders...
See:
slider1:0<0,22,1{set to channel 0,set to channel 1,set to channel 2,set to channel 3, [...] ,add to channel 0,add to channel 1,add to channel 2,add to channel 3,...}>Output channel
on a single line, it is rather ungly and unreadable.
slider1<0,23,1{
None,
set channel 0,
set channel 1,
set channel 2,
set channel 3,
[...] ,
add to channel 0,
add to channel 1,
add to channel 2,
add to channel 3,
...}>Output channel
Still long but looks better.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.