Skip to content

Commit 9cee5d8

Browse files
committed
script update
1 parent f012d1d commit 9cee5d8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Script Examples/listProperties.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
mi = selection[0]
55
for pc in mi.PropertyCategories:
66
print('\n')
7-
print('Display Name: {} Internal Name: {}'.format(pc.DisplayName, pc.Name))
8-
print('\tProperties')
7+
print('Property Category: {} ({})'.format(pc.DisplayName, pc.Name))
98
for dp in pc.Properties:
10-
print('\tDisplay Name: {} Internal Name: {}'.format(dp.DisplayName, dp.Name))
119
if dp.Value.IsDisplayString:
12-
print('\t\t[Value]: {}'.format(dp.Value.ToString()))
10+
value = dp.Value.ToString()
1311
elif dp.Value.IsDateTime:
14-
print('\t\t[Value]: {}'.format(dp.Value.ToDateTime().ToShortTimeString()))
12+
value = dp.Value.ToDateTime().ToShortTimeString()
1513
else:
16-
print('\t\t[Value]: {}'.format(dp.Value.ToString()))
14+
value = dp.Value.ToString()
15+
16+
print('\t{} ({}): {}'.format(dp.DisplayName, dp.Name, value))

0 commit comments

Comments
 (0)