soulburn3d
10-06-2009, 08:26 PM
Think I found a bug, just looking for confirmation (or an explanation as to what I'm doing wrong <G>)
1) Open attached file in max. It's just a simple polygon with a UVW unwrap modifier ontop.
2) Select Plane01
3) Go to modify panel, open up the unwrap, click edit, you should see the object's uvs.
4) Run the following code...
obj1 = $Plane01
sourceverts = polyop.getMapFace obj1 1 1
for v in sourceverts do
(
print (obj1.modifiers[1].unwrap.getVertexPosition currenttime v)
)
You should see results like this...
[0,1,0]
[0,0,0]
[0.5,0,0]
[0.5,1,0]
These are the results you expect.
5) Close the UV Window.
6) Click on the modifier to get out of subobject mode
7) Deselect the object
8) run the code a second time
You should see results like this...
[0.5,1,0]
[0.5,1,0]
[0.5,1,0]
[0.5,1,0]
which is totally wrong.
Anyone know what might be going on. happens in max 2009 and 2010, 64bit. Thanks.
- Neil
1) Open attached file in max. It's just a simple polygon with a UVW unwrap modifier ontop.
2) Select Plane01
3) Go to modify panel, open up the unwrap, click edit, you should see the object's uvs.
4) Run the following code...
obj1 = $Plane01
sourceverts = polyop.getMapFace obj1 1 1
for v in sourceverts do
(
print (obj1.modifiers[1].unwrap.getVertexPosition currenttime v)
)
You should see results like this...
[0,1,0]
[0,0,0]
[0.5,0,0]
[0.5,1,0]
These are the results you expect.
5) Close the UV Window.
6) Click on the modifier to get out of subobject mode
7) Deselect the object
8) run the code a second time
You should see results like this...
[0.5,1,0]
[0.5,1,0]
[0.5,1,0]
[0.5,1,0]
which is totally wrong.
Anyone know what might be going on. happens in max 2009 and 2010, 64bit. Thanks.
- Neil
