-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdrawnormals.py~
32 lines (26 loc) · 939 Bytes
/
drawnormals.py~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# use rhinoscriptsyntax to get all the functions in one shot
import rhinoscriptsyntax as rs
import random
import time
import Rhino
# groups = rs.SelectedObjects()
obj = rs.SelectedObjects()
# exaggerate = rs.GetReal("exaggeration multiplier (try it first and then adjust, default is 1.0)")
# repeat = rs.GetInteger("number of times to repeat (skip for single execution)")
print(obj)
# if not repeat:
# repeat = 20
# exaggerate = 0.02
# # if not exaggerate:
# # exaggerate = 1.0
# # print("no dice")
# # print(exaggerate)
# # else:
# # print("multiplier supplied")
# # print(exaggerate)
# print("exaggeration: ", exaggerate, " :: repeating ", repeat, " times")
# for time in range(repeat):
# for pt in points:
# translation = [(random.random()-0.5)*exaggerate, (random.random()-0.5)*exaggerate, (random.random()-0.5)*exaggerate]
# rs.MoveObject(pt, translation)
# rs.AddInterpCurve(points)