Here is a small list of very useful features that I wish were available in KSP to save some code writing:
● The ability to pass variables to functions like this:
function myFunction($var1, %var2, …)
declare $myFunctionVar1 := $var1
declare %myFunctionVar2 := %var2
…
end function
● The ability to use local scope variables inside functions like this:
function myFunction()
declare myLocalVar1 := 1
declare myLocalVar2 := 2
…
end function
● Support load and save structured data in JSON files (.nkj) with the ability to read content in the structure (parents vs child objects):
declare @myJsonFileContent
@myJsonFileContent := load('myJsonFile.nkj')
$knob1Value := @myJsonFileContent['parameters']['knob1Value']
OR
$knob1Value := @myJsonFileContent.parameters.knob1Value
…
end function
● Support for multi dimensional arrays:
declare %presets[10, 8]
Which ones are yours?
NOTE: THIS POST REPLACE THIS ONE WITH BAD CODE FORMATTING. PLEASE DELETE THE POST HERE UNDER:
https://community.native-instruments.com/discussion/28358/ksp-improvement-suggestions