SPARKS/ScriptV8Spark/Script sample files/script.js
/* Very basic eyes blinking functionality implemented */
Very basic eyes blinking functionality implemented
Very basic eyes blinking functionality implemented
function checkEyesBlinking(){
	var d = new Date();
	print(d.getSeconds());
	if((d.getSeconds())%2==0){
		setFaceExpressionRequired(component,"eyes-closed_ShapeKey", 0);
	}
	else{
		setFaceExpressionRequired(component,"eyes-closed_ShapeKey", 1);		
	}
}
function checkEyesBlinking ( ) { var d = new Date ( ) ; print ( d . getSeconds ( ) ) ; if ( ( d . getSeconds ( ) ) % 2 == 0 ) { setFaceExpressionRequired ( component , "eyes-closed_ShapeKey" , 0 ) ; } else { setFaceExpressionRequired ( component , "eyes-closed_ShapeKey" , 1 ) ; } }
Very basic eyes blinking functionality implemented
Very basic eyes blinking functionality implemented