Commit f7829c9b authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[script] minor changes in display tools

parent 76ccd4c6
...@@ -5,24 +5,24 @@ q2 = [[1.41929 , 0.56273 , 0.3167],[0.633238 , 0.498175 , 0.252145],[1.41049 , - ...@@ -5,24 +5,24 @@ q2 = [[1.41929 , 0.56273 , 0.3167],[0.633238 , 0.498175 , 0.252145],[1.41049 , -
color = r.color.black color = v.color.black
for i in range(0,len(q)): for i in range(0,len(q)):
r.client.gui.addSphere("s"+str(i),0.03,color) v.client.gui.addSphere("s"+str(i),0.03,color)
r.client.gui.applyConfiguration("s"+str(i),q[i]+[1,0,0,0]) v.client.gui.applyConfiguration("s"+str(i),q[i]+[1,0,0,0])
r.client.gui.setVisibility("s"+str(i),"ALWAYS_ON_TOP") v.client.gui.setVisibility("s"+str(i),"ALWAYS_ON_TOP")
r.client.gui.addToGroup("s"+str(i),r.sceneName) v.client.gui.addToGroup("s"+str(i),v.sceneName)
r.client.gui.refresh() v.client.gui.refresh()
color = r.color.red color = v.color.red
for i in range(0,len(q2)): for i in range(0,len(q2)):
r.client.gui.addSphere("sc"+str(i),0.01,color) v.client.gui.addSphere("sc"+str(i),0.01,color)
r.client.gui.applyConfiguration("sc"+str(i),q2[i]+[1,0,0,0]) v.client.gui.applyConfiguration("sc"+str(i),q2[i]+[1,0,0,0])
r.client.gui.addToGroup("sc"+str(i),r.sceneName) v.client.gui.addToGroup("sc"+str(i),v.sceneName)
r.client.gui.setVisibility("sc"+str(i),"ALWAYS_ON_TOP") v.client.gui.setVisibility("sc"+str(i),"ALWAYS_ON_TOP")
r.client.gui.refresh() v.client.gui.refresh()
......
...@@ -13,6 +13,6 @@ def moveSphere(name,r,pos): ...@@ -13,6 +13,6 @@ def moveSphere(name,r,pos):
r.client.gui.refresh() r.client.gui.refresh()
def displayContactSequence(r,configs,pause=1.): def displayContactSequence(r,configs,pause=1.):
for i in range(0,len(configs)-1): for i in range(0,len(configs)):
r(configs[i]) r(configs[i])
time.sleep(pause) time.sleep(pause)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment