function MainLoop() |
Top Previous Next |
This function is called each time the user confirms a data on the request stack
/* Note: We are running as a command so this pointer is a BK_CommandScriptable */
function MainLoop() { /* currentGet returns the index of the current request the current request is in a transient state so it has not been confirmed by the user */
var currGet = this.CurrentGet ();
if( currGet ==1 ) { //request 0 has been confirmed and has its final value var pnt = this.GetPoint (0); //if param 0 was a point var norm = this.GetNormal (0); //if param was a point and Normal vector var Obj = this.GetInput (0); //if param 0 was an object }
var transientPnt = this.GetPoint ( currGet ); //this is a point in a transient state }
|