ScriptSpot

Forum topic · General Scripting

Unwrap UVW modifier problem

By dterziev · 2013-01-31

Description

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 (3)

miauu · 2013-02-01

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

miauu · 2013-01-31

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 · 2013-02-01

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.

Attachments