hi,
Is there any function of snippets for preserving the UVs while translating points?
Thanks.
Solved! Go to Solution.
Solved by osidedan. Go to Solution.
hello!
If you're using the xform command to move verticies, there is a preseveUV flag.
for example (in python):
# Moves a selected vertex to the world origin while preserving UV space
import maya.cmds as cmds
sel = cmds.ls(sl=True)[0]
cmds.xform(sel, t=(0,0,0), preserveUV=True)
Hope that helps!
Interesting. I did not have a look at the Maya commands since I use the c++ api.
I'd like to avoid using xform.
Do you know if there is a equivalent api function for this purpose?
Thanks
Oh if you're doing api/plug-in stuff, then that is definitely outside of my knowledge base. Someone else will need to chime in on that. I hope you get it figured out though!
Can't find what you're looking for? Ask the community or share your knowledge.