Skip to content

Commit 8359200

Browse files
committed
Minor clean up
1 parent 2245d12 commit 8359200

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#frame files
2+
scripts/frames/
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]
@@ -87,6 +90,3 @@ ENV/
8790

8891
# Rope project settings
8992
.ropeproject
90-
91-
#frame files
92-
scripts/frames/fisher_iris_visualization*.png

scripts/fisher_iris_visualization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def createLabels(X, y, labels, cameraObj=None):
190190

191191
# Create a grid
192192
bpy.ops.mesh.primitive_grid_add(
193-
# radius=3,
193+
size=5,
194194
location=(0, 0, 0),
195195
x_subdivisions=15,
196196
y_subdivisions=15)

scripts/utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def rainbowLights(r=5, n=100, freq=2, energy=0.1):
108108
pos = (r*sin(tau*t), r*cos(tau*t), r*sin(freq*tau*t))
109109

110110
# Create lamp
111-
bpy.ops.object.add(type='LAMP', location=pos)
111+
bpy.ops.object.add(type='LIGHT', location=pos)
112112
obj = bpy.context.object
113113
obj.data.type = 'POINT'
114114

@@ -121,7 +121,7 @@ def rainbowLights(r=5, n=100, freq=2, energy=0.1):
121121

122122

123123
def removeAll(type=None):
124-
# Possible type: MESH�, �CURVE�, �SURFACE�, �META�, �FONT�, �ARMATURE�, �LATTICE�, �EMPTY�, �CAMERA�, �LAMP�
124+
# Possible type: "MESH", "CURVE", "SURFACE", "META", "FONT", "ARMATURE", "LATTICE", "EMPTY", "CAMERA", "LIGHT"
125125
if type:
126126
bpy.ops.object.select_all(action='DESELECT')
127127
bpy.ops.object.select_by_type(type=type)

0 commit comments

Comments
 (0)