Hi,
code from Mitch
Mitch script to scroll back through created objects.
for V5
right mouse click or spacebar to scroll through, esc to stop.
last object selected stays selected.
I wish to make a button for this, for both V5 and V7, what should the code be for the button as I am only knowing about .rvb and .py ?
Thanks. Steve
the code from Mitch is this:-
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()
2 posts - 2 participants