Preserve edges python command

Preserve edges python command

Anonymous
Not applicable
964 Views
4 Replies
Message 1 of 5

Preserve edges python command

Anonymous
Not applicable

Hello world, this is my first post in the forum, I hope can you help me with a simple thing in Maya but  always drive me crazy, when I have some meshes in the scene who I can to make a switch to activate the "UV Boundary Smoothing --->Preserve Edges" I was try some time and nothing happened, thank you for some help and your time.

The idea is when I aplicate the smooth mesh preview the borders of the meshes adjusting perfect in the same time with the borders of the uvs with a script

ifoumiiqpy5b.png

I try to find the command in the python area and pummel and I can't find the solution, I was try to osdFvarBoundary command and nothing happened, that option don't have the preserver edges flag.
if somebody have some idea I will appreciate a lot of

cheers.

45b3f1ed-d93d-473f-b395-3865673bdccb,640,590

0 Likes
965 Views
4 Replies
Replies (4)
Message 2 of 5

jmreinhart
Advisor
Advisor
setAttr "pCubeShape1.osdFvarBoundary" 2;

is this what you're looking for?

0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi dude, thank you for reply, I appreciate the time to have to help me,  in relation to the answer the code apply to specific object with an Attribute, I need apply the code to deferents objects with a variable to accelerate the modeling process, I hope fin a solution, I have problems with that time ago, I try to share my screencast to show you, and again thank you for your help.

 

https://autode.sk/3j0svLE

 

45b3f1ed-d93d-473f-b395-3865673bdccb,640,590

0 Likes
Message 4 of 5

jmreinhart
Advisor
Advisor
source_obj = ''
target_obj = ''
cmds.setAttr(target_obj + '.osdFvarBoundary', cmds.getAttr(source_obj + '.osdFvarBoundary'))

something like this will work

0 Likes
Message 5 of 5

Anonymous
Not applicable

hi dude, thank yo for your help, I can found a portal Solution,  your code help a lot of to make it working, I write some variables additional with selected objcts

 

sourceObj = mylist.pop(0)
targetObj = mylist.pop(1) 

0 Likes