trueSpace script params

function Execute(params)
	var controlIn1 = params.ConValue('controlIn1');
	var controlIn2 = params.ConValue('controlIn2');

	var scriptFrom = params.GetControlIn();


	if(scriptFrom == "controlIn2")

	// params.ConValue("controlOut1") = ...
	// params.ConValue("ControlOut2") = ...

params.GetControlIn() gets the name of the control input that runs the script, so can have several input controls and make code decisions based on which input was used
params.SetControlOut(str) does the opposite and lets you choose which output control will fire off

params.SetTerminationFlag() will stop all downstream execution

params.GetControlIn() does not work, so this whole idea is dead

Leave a Reply

Your email address will not be published. Required fields are marked *