C# scripting, range()
#1
In C# scripting, how can I use the range function to generate a sequence of integers? What is the syntax for range? Sometimes I need a large set of numbers, like range(5, 19).
PHP Code:
public void simulationStep()
{        
    
    
Point3[] targetPositions = new Point3[] {new Point3(0,0,10), new Point3(10,0,0),new Point3(0,10,0)};


    int[] targetIDs = new int[] {1,3,9};
    int[] bd = new int[] {5,7,13};
    for(int i=0i<targetIDs.Lengthi++)
   {
    tf.SetPos(targetIDs[i], targetPositions[i]);
    tf.NewBind(targetIDs[i],bd[i],0,0,0); 
    
   

  Reply
#2
And how do I use scripting to assign particle targets?
  Reply
#3
Is using a loop structure like“ for (int rangeA = 6; rangeA <= 12; rangeA++){} ”the only approach available?
  Reply


Forum Jump: