[Bf-python] Modifing one coordinate
Jacques Guignot
guignot at wanadoo.fr
Wed Jul 9 19:23:38 CEST 2003
Carlos LXpez wrote:
>Yes, I know. But I do NOT know which coordinate i need, i.e.:
>
>
>
I see ;-)
It is possible, but the semantics of the loc attribute must be changed,
and the type of the setloc params must be changed to a list.
with these modifications, you could do this :
ob = Object.Get(XXX)
l = ob.loc
l[XX] = YY #XX = 0,1 or 2
ob.loc = l
Michel, do u agree with these modifications?
btw, I think a good coding guideline would be to avoid multiple
parameters, and to prefer lists of params. Much more flexible!
More information about the Bf-python
mailing list