I would like to use the components from a pose (x,y,z,rx,ry,rz) to create a variable that references just one of the components of the pose, eg. variable=pose1 (x-component) or variable2= pose2 (ry-component)
# pose is p array with p[ x , y , z , rx , ry , rz ] # pose INDEX for 1st element is ‘0’, 2nd is ‘1’, … , 6th is ‘5’ pose:=p[1,2,3,4,5,6] # accessing 1st element ‘0’ in pose var_1:= pose # returns var_1 = 1 # creating array from pose var_2 := [pose,pose] #returns var_2 = [3,6] # changing value in pose using index pose=9 #returns pose = p[1,2,3,9,5,6]
Hope this helps, and best of luck!
Thanks for the reply Michael! I tried using your techinque but I am still running into issues.
I just posted here with the larger problem that I am dealing with on this program: