Loop through perspective dict property in python script

When you use for with a dict like that, you’re iterating through its keys not its values.
I tend to explicitly ask what I want using:
dict1.keys()
or
dict1.values()
or
dict1.items()

Thus your script becomes:

dict1 = ...
for key, value in dict1.items():
   end = value['end']
   system.perspective.print(end)

More info:

2 Likes