Hi,
How can i create On Draw Trigger in 1000+ NetworkNode using Script window ?
i want to place following code in all the NetworkNodes !!
Object current = ownerobject(c); treenode view = param(1); if (PathVisibility == 1) { Object NN0 = current; Object NN1 = current.outObjects[1]; double width = current.width; drawtomodelscale(current); double dx1 = NN1.location.x - NN0.location.x; double dy1 = NN1.location.y - NN0.location.y; double Angle1 = Math.degrees(Math.atan2(dy1 ,dx1)); double Distance1 = Math.sqrt(dx1 * dx1 + dy1 * dy1); fglRotate(Angle1, 0, 1, 0); drawrectangle(0,width/2,0,Distance1,width,0,0,0, 255,255,0, 1, 0,0,0); }