[Bf-python] Modifing one coordinate

Carlos López klopes at posta.unizar.es
Wed Jul 9 17:00:33 CEST 2003


>It is straightforward to add the LocX, LocY and LocZ to an object (same 
>fore rots and sizes).
>If needed, I can implement it.

Yes, I know. But I do NOT know which coordinate i need, i.e.:
the user choose if wants to apply a feature to X,Y or Z. The the code is
in this way:

for c in range(3):
    if apply[c]:
        obj.Loc[c]=coor

Anyway, I've found the way to it to work:

if c==0:
	o.LocX=coor
if c==1:
	o.LocY=coor
if c==2:
	o.LocZ=coor

Maybe somebody wants to give more opinions... Thanks.






More information about the Bf-python mailing list