Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

preserve uvs

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
stuzzz
896 Views, 4 Replies

preserve uvs

hi,

 

Is there any function of snippets for preserving the UVs while translating points?

Thanks.

4 REPLIES 4
Message 2 of 5
osidedan
in reply to: stuzzz

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!

Message 3 of 5
stuzzz
in reply to: osidedan

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 

Message 4 of 5
osidedan
in reply to: stuzzz

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!

Message 5 of 5
The-Digital-Shaman
in reply to: stuzzz

What's wrong about xform?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report