[Bf-python] Modifing one coordinate
Michel Selten
michel.s at home.nl
Wed Jul 9 19:04:32 CEST 2003
On Wed, 2003-07-09 at 19:23, Jacques Guignot wrote:
> 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?
Nope, the location, rotation, size, ... variables are all accessible
through the object methods _and_ the object variables directly.
With regards,
Michel
More information about the Bf-python
mailing list