Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here's a very basic question. It looks like the assignment statement (e.g., m = TpotT) is not creating an independent copy of TpotT.
I have a scene with a box and a Teapot. The box has the following transform script:
m = TpotT
format "\nTpotT BEFORE = %" TpotT
m.pos = [1,2,3]
format "\nTpotT AFTER = %" TpotT
m
The output from this script is as follows:
TpotT BEFORE = (matrix3 [0.606322,0.217622,0.764862] [0.296822,0.830378,-0.47156] [-0.737746,0.512946,0.438881] [500.746,703.19,0])
TpotT AFTER = (matrix3 [0.606322,0.217622,0.764862] [0.296822,0.830378,-0.47156] [-0.737746,0.512946,0.438881] [1,2,3])
I would not expect that changing a vector of m would change the same vector of TpotT.
How can I create a matrix from TpoT and change the position vector without changing TpotT?
lee.minardi
Solved! Go to Solution.