Notifications
Clear all

[Closed] Can anyone help?

I need a script…If there are any very nice people out there that can do this…that would be cool.

Here it is:

I want a script to go through a scene and save the uvw’s of any unwraped object and give it the same name as the object itself. Then after it saves the file it sets the map channel to 1 then reloads the uvw file.

If anyone can do this for me that would be great and it would save me a lot of time. Or maybe this allready exists and someone can point me in its direction…I have already searched scriptspot and couldn’t find anyting.

Thanks!

5 Replies

Well I have been trying to do this…I’m not very good at scripting or no how exactly. but I am trying to make a script that will save the uvw file of the selected geometry and automatically give it the same name as the object.

This is what I have:
[color=orange]for[/color] obj in selected do

(
$.modifiers[#unwrap_uvw].unwrap.save ()
local unwrap = standard name:obj.name
)

I get a “No “map” function for undefined” error…can someone help me???

Can’t anyone help me out with this Save UVW file script?

1 Reply
(@bobo)
Joined: 11 months ago

Posts: 0

From top of my head without trying it out, you cannot do what you described because the .Save() method does not save the file, it simply presses the Save button and opens the save dialog, meaning that you would have to enter a file name for each object… Same with loading.

So it can’t be done? That sux.

400extra ten…