Skip to content

Plugin configurations

dustin2711 edited this page Aug 3, 2024 · 1 revision

Tuple return

The C# and Python code generators offer the possibility to return tuples instead of arrays. This is done be unchecking the "useArrays" checkbox.

Default behavior (useArrays is checked):

	public static void Execute(float[] line)
	{
		line[2] = 1.0f; // e1
		line[3] = 1.0f; // e2
	}

Tuple return (useArrays is unchecked):

	public static (float line_e2, float line_e1) Execute()
	{
		float line_e1 = 1.0f;
		float line_e2 = 1.0f;
		
		return (line_e2, line_e1);
	}

Optimize on save

The C# and Python code generators offer the possibility to generate (= optimize) code when the Gaalop script is saved (using save button or ctrl + S). This is done by checking the checkbox "optimizeOnSave" and providing a valid "saveFileDirectory".

image

Clone this wiki locally