All posts by Clinton Reese

Misc trueSpace script

function MapRange(val,a1,a2,b1,b2)
	var val2 = Math.min(val,a2);
	s = Math.max(val2, a1);
	return b1 + (s-a1)*(b2-b1)/(a2-a1)

map range a1,a2 to b1,b2

RsAnim.PutFrame places a single item at a certain frame without affecting other items in the scene, useful for some “set driven key” type behaviors.

LE.ConfirmEncapsulation(”, true, ”) – first arg nodes(guessing semi colon delimited list) or blank for selection, second arg true=3d false=2d, third arg name for new node