In the attached I have a mesh that I had to planar map (for reasons I won’t bore you with). If I squish that the geometry squishes fine but the texture gets messed up as well all know now.
To fix that I can run _SetMeshSurfaceParameters and ApplySurfaceMapping which has worked well in the past. However in this case the geometry gets seriously messed up when squishing.
The only thing I can think of is that the mesh fully encloses a loop (ie. periodic). A non periodic mesh behaves fine (the piece on the right in this scene)
I’ve been trying to figure out a workaround and found a solution that seems to only work in V7
DISCLAIMER: I worked on this in between other work today so I did not have full focus on this.
Conclusions while finding a solution:
Setting texture coordinates in V8 through python does not seem to work as it does in V7
Also Replacing the mesh via scriptcontext.doc.Replace() does not alter the texturecoordinates as they are when adding a new mesh.
Steve, to make this work, save as V7 file and open in V7
There run this script, select 3D mesh, select Flat mesh and check the newly created flat mesh.
I’m not seeing that mentioned in this thread, is it a separate issue you’re seeing and reporting in another? I want to make sure that it’s filed. Thanks.
I mentioned it above somewhere. If I send the first mesh (ie. the planar mapped one) out to OBJ and back again, it squishes badly exactly the same as the one where I ran SetMeshSurfaceParameters.