hello…
i read somewhere on the forum, that it’s possible to keep a value in memory, to use more later…
for example, when i make circle, rhino proposes the last value used. how can i do with python?
Hello yes you can do this with the sticky dictionary
import scriptcontext as sc
if sc.sticky.has_key('OnlyForPeace'):
print 'Oui'
print sc.sticky['OnlyForPeace']
else:
print 'Pas Encore'
sc.sticky['OnlyForPeace'] = 42
1 Like