View Single Post
  #2  
Old 09-28-2005, 08:55 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

The problem is with the following line:
Code:
dest = CAR_TRANSFORM
In python when you assign a list to a variable, it doesn't make a copy. So when you modify the z coordinate of the dest variable you are also modifying the CAR_TRANSFORM variable. Use the following code to make a copy of the list:
Code:
dest = CAR_TRANSFORM[:]
Reply With Quote