Unwrap UVW modifier problem

Hi

I have problem with a script and I track it down to these three lines. Everything works fine when I execute it line by line, but when I execute the three lines together something goes wrong. The third line ignores the selection and gives strange results. Can you give me some help please :)

$.Unwrap_UVW.selectVertices #{1} -- select vertex 1
$.Unwrap_UVW.SelectElement() -- convert selection to element
$.Unwrap_UVW.snapPivot 2 -- move the pivot to the corner

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

It seams that this is MAx2011

It seams that this is MAx2011 problem. You can report this to AD. I doubt they will fix it, but... who knows.

miauu's picture

Hi! Works fine for me. The

Hi!
Works fine for me. The pivot is placed to the lower left corner of the selected element. I tested on max2013. Can you post some pictures of the strange result?

dterziev's picture

Thanks for the reply! I've

Thanks for the reply!
I've just made a test on max 2013 and it works.

It still doesn't work on max 2011. This is the result I get on a cylinder. I've managed that if I select a few vertices manualy then deselect them and execute the script the result still takes into account that previous selection.

AttachmentSize
1.jpg 222.91 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.