Skip to content

Commit b0002e3

Browse files
committed
adding a prefix to the rhino name attribute processor
1 parent 905e749 commit b0002e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compas_rhino/utilities/objects.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,12 @@ def get_object_attributes(guids):
172172
return attrs
173173

174174

175-
def get_object_attributes_from_name(guids):
175+
def get_object_attributes_from_name(guids, prefix=None):
176176
attrs = []
177177
for name in get_object_names(guids):
178178
try:
179+
if prefix:
180+
name = name.lstrip(prefix)
179181
attr = literal_eval(name)
180182
except (ValueError, TypeError):
181183
attr = {}

0 commit comments

Comments
 (0)