-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconvert_entity_to_brush.py
More file actions
35 lines (28 loc) · 809 Bytes
/
Copy pathconvert_entity_to_brush.py
File metadata and controls
35 lines (28 loc) · 809 Bytes
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
33
34
35
#!/usr/bin/python
"""
Convert an entity into a brush
Chris Sprance
Entrada interactive
"""
# glob looks through files in a smart way
import general
class ConvertEntityToBrush(object):
"""
takes the selected entities and converts them into brushes
"""
def __init__(self):
super(ConvertEntityToBrush, self).__init__()
self.selected = list()
self.entity = str()
def start(self):
"""method called when button is pushed
kicks the whole thing off"""
# get and store the selection
self.selected = general.get_names_of_selected_objects()
# loop through the selection
for self.entity in self.selected:
# get the items geometry file
general.get_entity_property(self.entity, '')
if __name__ == '__main__':
ceb = ConvertEntityToBrush()
ceb.start()