Notifications
Clear all

[Closed] Relax Uv's without selecting the object doesn't work

I am trying to relax UV’s on a bunch of objects using relax2() property and it does work if I have the mod panel activated (or if the object is selected) but doesnt do anything if the object is not selected but the whole script runs a lot quicker which is what I am after.

is there any other way to do it? I am only after a quick relax by face or something without having to select the objects.

Here is a snippet of the code I am implementing for relax:

unwrapmod = UVWUnwrap()	
addModifier thisdecal unwrapmod
modPanel.setCurrentObject unwrapmod
unwrapmod.relax
unwrapmod.setRelaxAmount 1
unwrapmod.relax2()		

Thanks