Page 4 of 4
Re: Display program name in a fader or monitor
Posted: 18 Jan 2012 11:13
by axel_liine
As a created expression, there's a hard limit to the number of actual characters you can type in the text field, that's 256. Therefore you can't have a very long list as it won't get parsed past the 256th character.
As a script, there's a limit to the number of items enclosed in '{' '}' braces. That's 64.
Raising those two limits is on the todo list.
Re: Display program name in a fader or monitor
Posted: 19 Jan 2012 06:32
by kraftf
axel_liine wrote:As a created expression, there's a hard limit to the number of actual characters you can type in the text field, that's 256. Therefore you can't have a very long list as it won't get parsed past the 256th character.
As a script, there's a limit to the number of items enclosed in '{' '}' braces. That's 64.
Raising those two limits is on the todo list.
I don't understand this.
What do you mean by "actual" characters?Do you mean 256 characters per line. I've able to create lists that have 60 items(<64) with 650 characters.
What is the maximum character nymber per script?
I was able to have around 3500 characters per script.
Re: Display program name in a fader or monitor
Posted: 19 Jan 2012 06:38
by Macciza
Thanks for that,
Though if
As a script, there's a limit to the number of items enclosed in '{' '}' braces. That's 64.
why could I generate a final array ( from multiple arrays) of 127 items?
How is this happening -wouldn't the final array assignment cause array expansion and overflow the 64 limit ? Not that I want it to . . .
Just interested in knowing whats going on behind the scenes that allows the large array solution I found . . .
Cheers
MM
Re: Display program name in a fader or monitor
Posted: 19 Jan 2012 08:36
by axel_liine
kraftf wrote:axel_liine wrote:As a created expression, there's a hard limit to the number of actual characters you can type in the text field, that's 256. Therefore you can't have a very long list as it won't get parsed past the 256th character.
As a script, there's a limit to the number of items enclosed in '{' '}' braces. That's 64.
Raising those two limits is on the todo list.
I don't understand this.
What do you mean by "actual" characters?Do you mean 256 characters per line. I've able to create lists that have 60 items(<64) with 650 characters.
What is the maximum character nymber per script?
I was able to have around 3500 characters per script.
I'm not talking about the Multiline script window. I mean when editing an expression value, such as "friction" and "attraction" in the Behaviour panel, or any variable you created yourself using the "Create Expression" button.
The Multiline script doesn't have this 256 characters limit.
Re: Display program name in a fader or monitor
Posted: 19 Jan 2012 08:38
by axel_liine
Macciza wrote:Thanks for that,
Though if
As a script, there's a limit to the number of items enclosed in '{' '}' braces. That's 64.
why could I generate a final array ( from multiple arrays) of 127 items?
How is this happening -wouldn't the final array assignment cause array expansion and overflow the 64 limit ? Not that I want it to . . .
Just interested in knowing whats going on behind the scenes that allows the large array solution I found . . .
Cheers
MM
The 64 element limit applies when the script engine analyzes what you typed in, i.e maximum 64 elements separated by commas. Internally lists can actually have more than 64 elements, as you found out with your workaround. This discrepancy will be fixed.
Re: Display program name in a fader or monitor
Posted: 19 Jan 2012 11:19
by jojokrok
Hi,
I did not know that this treat is growing so big.
I want to thank all the people who give me more ideas. Thanks also to them who give me so much information and little scrips and especially Good explanation. It is learning by doing.
Thanks and have a nice day.
Re: Display program name in a fader or monitor
Posted: 21 Jan 2012 17:31
by kraftf
axel_liine wrote:
I'm not talking about the Multiline script window. I mean when editing an expression value, such as "friction" and "attraction" in the Behaviour panel, or any variable you created yourself using the "Create Expression" button.
The Multiline script doesn't have this 256 characters limit.
OK thx, now I get it.
But what about the multiline script?What's the character number limit? It seems that above around 3500 chars the parser can't cope with it.
Re: Display program name in a fader or monitor
Posted: 23 Jan 2012 09:32
by axel_liine
Maximum multiline script length is currently set at 4096 characters.
It's a good practice to split your script in different functions for maximum readibility. Just create a second script called "init" for instance, set its trigger to "Manual", and call it from another script with "init();"
Re: Display program name in a fader or monitor
Posted: 23 Jan 2012 15:03
by kraftf
axel_liine wrote:Maximum multiline script length is currently set at 4096 characters.
It's a good practice to split your script in different functions for maximum readibility. Just create a second script called "init" for instance, set its trigger to "Manual", and call it from another script with "init();"
Yes its fair enough, and that is actually what I am doing when using large string variables. But I had to find out through trial and error