Hi all,
I am doing some Python scripting for a while, but I'm not too deep into
it yet. So I have a problem I can't solve.
I need to call an object attribute:
value = object.attrName[0]
the problem is, that the attribute name can only be specified at runtime.
So what I have is something like
[color=blue][color=green][color=darkred]
>>> attrName = sys.argv[1]
>>> attrName[/color][/color][/color]
'cellsize'
and I need to pass it on so I can call
value = object.cellsize[0]
Can this be done using Python?
Thanks for any hints
Cheers
Felix
I am doing some Python scripting for a while, but I'm not too deep into
it yet. So I have a problem I can't solve.
I need to call an object attribute:
value = object.attrName[0]
the problem is, that the attribute name can only be specified at runtime.
So what I have is something like
[color=blue][color=green][color=darkred]
>>> attrName = sys.argv[1]
>>> attrName[/color][/color][/color]
'cellsize'
and I need to pass it on so I can call
value = object.cellsize[0]
Can this be done using Python?
Thanks for any hints
Cheers
Felix
Comment