Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Python script scroll back created objects cannot esc from

$
0
0

Hi,
V5,
button code needs end task

!_-RunPythonScript (
import rhinoscriptsyntax as rs
import scriptcontext as sc

def ScrollBackInTime():
objs=rs.NormalObjects()
if objs:
for i in range(len(objs)):
rs.UnselectAllObjects()
rs.SelectObject(objs[i])
msg=“Object #{} selected.”.format(i+1)
check=rs.GetString(msg+" Press enter to continue, Esc to stop")
if sc.escape_test(False):
break
print “Oldest object reached, exiting function”
ScrollBackInTime()
)

this in my button in V5
doesnt allow esc to escape it, no way out, clicking another tool donk donk, click X donk donk, evil !
had to end task and lose work.

Steve

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles