How to get curves from ipo?

icu = ipo[Ipo.OB_LOCX]
I can get a curve from an ipo object.
Is it possible to use a string as key?
icu=ipo[‘OB_LOCX’] I tried this. But it does not work.
What is wrong?
In ‘the good old time’ it was possible to do::cool:
for dim in [‘X’,‘Y’,‘Z’]:
to get all the curves for the three dimensions.
Any pythonic solution now?

If you print out the value of Ipo.OB_LOCX it gives 1. Then 2 and 3 for Y and Z. So it’s not (or no longer) a string but an int. I haven’t played around with it but I hope this helps.