Copy and Paste UV Coordinates #38460

Closed
opened 2014-02-03 14:53:42 +01:00 by nutti · 89 comments
Member

Project: Blender Extensions
Tracker: Python Scripts Upload
Blender: 2.69 - 2.71
Category: UV
Python: 3.3 - 3.4
Script name: Copy And Paste UV
Author(s): Nutti
Status: Open

I'm the first time posting.
So, please comment if there are some problems.

This is a duplicate development with #32562.
https://developer.blender.org/T32562

I rewrite add-on, because above add-on can not copy adjacent vertices.
Since most of parts are rewritten, I posted new task instead of comments on #32562.

[github]
https://github.com/nutti/Copy-And-Paste-UV

Usage is almost same.

  1. Select vertices which UV will be copied.
  2. Click 'U' - Copy UV.
  3. Select vertices which UV will be pasted.
  4. Click 'U' - Paste UV.

Any problems and comments are welcome.

Thanks.

**Project:** Blender Extensions **Tracker:** Python Scripts Upload **Blender:** 2.69 - 2.71 **Category:** UV **Python:** 3.3 - 3.4 **Script name:** Copy And Paste UV **Author(s):** Nutti **Status:** Open I'm the first time posting. So, please comment if there are some problems. This is a duplicate development with #32562. https://developer.blender.org/T32562 I rewrite add-on, because above add-on can not copy adjacent vertices. Since most of parts are rewritten, I posted new task instead of comments on #32562. [github] https://github.com/nutti/Copy-And-Paste-UV Usage is almost same. 1. Select vertices which UV will be copied. 2. Click 'U' - Copy UV. 3. Select vertices which UV will be pasted. 4. Click 'U' - Paste UV. Any problems and comments are welcome. Thanks.
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
nutti self-assigned this 2014-02-03 14:53:42 +01:00
Author
Member

Added subscriber: @nutti

Added subscriber: @nutti

Added subscriber: @Cattrina

Added subscriber: @Cattrina

Too bad this does not copy seams aswell :(

Too bad this does not copy seams aswell :(
Author
Member

Thanks for your comment!

Please, let me know your operation more detail.
Is there any relation to seam data and "raw" UV coordinate?
This add-on targets to copy raw UV coordinate, so it's reasonable not to copy seams.

I'd like to know what your expected behavior on this plugin about seams.

Thanks for your comment! Please, let me know your operation more detail. Is there any relation to seam data and "raw" UV coordinate? This add-on targets to copy raw UV coordinate, so it's reasonable not to copy seams. I'd like to know what your expected behavior on this plugin about seams.

I did not expect this plugin to copy seams. I just wish it somehow was possible to, as after making several alterations of my character hands I came to realization I had made the materials wrong. As all hands need to be exactly the same texture-wise ( I am making an animated object for Second Life) if I want to use the same texture on all of them. Remaking all UV maps was painstakingly slow, although this did help tremendously.

I did not expect this plugin to copy seams. I just wish it somehow was possible to, as after making several alterations of my character hands I came to realization I had made the materials wrong. As all hands need to be exactly the same texture-wise ( I am making an animated object for Second Life) if I want to use the same texture on all of them. Remaking all UV maps was painstakingly slow, although this did help tremendously.
Member

Added subscriber: @PaulGeraskin

Added subscriber: @PaulGeraskin
Member

WOW!
Your version of the addon works 10 times faster!
i think we can replace this addon https://developer.blender.org/T32562 with your one. Your addon is really fast!

I have just tested it. The only issue i found - you need to make a check if copied uvs and selected uvs have the same size.
Can you fix it and talk to @ideasman42 on IRC to replace the addon?

Thanks.

WOW! Your version of the addon works 10 times faster! i think we can replace this addon https://developer.blender.org/T32562 with your one. Your addon is really fast! I have just tested it. The only issue i found - you need to make a check if copied uvs and selected uvs have the same size. Can you fix it and talk to @ideasman42 on IRC to replace the addon? Thanks.
Author
Member

Thanks for your comment and bug report.
I fixed it now.

https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext

uv_copy_and_paste_uv.py

Can you fix it and talk to @ideasman42 on IRC to replace the addon?

OK, but I'm newcommer, I would like to know where should I talk to @ideasman42.

Thanks for your comment and bug report. I fixed it now. https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext [uv_copy_and_paste_uv.py](https://archive.blender.org/developer/F104837/uv_copy_and_paste_uv.py) > Can you fix it and talk to @ideasman42 on IRC to replace the addon? OK, but I'm newcommer, I would like to know where should I talk to @ideasman42.
Member

Great!

Go here http://webchat.freenode.net/
Channel #blendercoders

You can pick Ideasman42.
Or me mifth.

But Ideasman_42 offline right now. You need to get him.
Or get Mont29. He is a boss there too. :)

They will give you commit access ti git repository. Also you will need to add your ssh-public key in developer.blender.org settings.

Great! Go here http://webchat.freenode.net/ Channel #blendercoders You can pick Ideasman42. Or me mifth. But Ideasman_42 offline right now. You need to get him. Or get Mont29. He is a boss there too. :) They will give you commit access ti git repository. Also you will need to add your ssh-public key in developer.blender.org settings.
Author
Member

Thanks for sharing information!

Go here http://webchat.freenode.net/

chat tool !?
Oops, I can't speak English well :(
Is there another way to contact @Ideasman42 ?
For example, e-mail or bbs etc...

Thanks for sharing information! > Go here http://webchat.freenode.net/ chat tool !? Oops, I can't speak English well :( Is there another way to contact @Ideasman42 ? For example, e-mail or bbs etc...
Member

I know no other way.
If you have issues, then i can commit it as i committed previous script .

But you will have no chance to make fixes. As i can't give you commit access.

I know no other way. If you have issues, then i can commit it as i committed previous [script ](https://developer.blender.org/T32562) . But you will have no chance to make fixes. As i can't give you commit access.
Author
Member

I know no other way.

On IRC, I speak many developers and they teach me following links.
http://wiki.blender.org/index.php/Dev:Doc/Process/Addons

I will start to read it, and commit to git repository.

Thanks.

> I know no other way. On IRC, I speak many developers and they teach me following links. http://wiki.blender.org/index.php/Dev:Doc/Process/Addons I will start to read it, and commit to git repository. Thanks.
Author
Member

I'm reading wiki page.
I have some questions about it.

  • Should this add-on be code reviewed?
  • How to create wiki pages? (From "create" tab, I couldn't create new page.)
  • Which directory should I commit add-on, release/scripts/addons_contrib or release/scripts/addons?
I'm reading wiki page. I have some questions about it. - Should this add-on be code reviewed? - How to create wiki pages? (From "create" tab, I couldn't create new page.) - Which directory should I commit add-on, release/scripts/addons_contrib or release/scripts/addons?
Member
- Dunno know. It's too simple. But possibly yes. - You need to login. Then you can create wiki page. But i guess we can reuse this page: http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/UV/Copy_Paste_UVs - release/scripts/addons_contrib You Need to replace [the script ](https://developer.blender.org/T32562) which is already there.
Author
Member

Thank you!

I could edit wiki page : http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/UV/Copy_Paste_UVs
However I couldn't push module to remote repos.
Error was shown as follows.

...(already commited to local repos)
$ git push origin master
fatal: remote error: access denied of repository not exported: /blender-addons-contrib.git

They will give you commit access ti git repository. Also you will need to add your ssh-public key in developer.blender.org settings

Is this old comment solve the problem?

Thank you! I could edit wiki page : http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/UV/Copy_Paste_UVs However I couldn't push module to remote repos. Error was shown as follows. ...(already commited to local repos) $ git push origin master fatal: remote error: access denied of repository not exported: /blender-addons-contrib.git > They will give you commit access ti git repository. Also you will need to add your ssh-public key in developer.blender.org settings Is this old comment solve the problem?
Member

Looking at log - issue is with commit access.

yes you must to add public ssh key. commit access is going through the ssh key.

also, does blender devs add you to commit access?

Looking at log - issue is with commit access. yes you must to add public ssh key. commit access is going through the ssh key. also, does blender devs add you to commit access?
Author
Member

I added public ssh key from setting in developer.blender.org.

does blender devs add you to commit access?

Maybe, not yet.
Will commit access be added by Ideasman_42 or Mont29?

I added public ssh key from setting in developer.blender.org. > does blender devs add you to commit access? Maybe, not yet. Will commit access be added by Ideasman_42 or Mont29?
Member

I guess both can add the access.
For my scripts - Ideasman_42 added me the the access.

I guess both can add the access. For my scripts - Ideasman_42 added me the the access.
Author
Member

I contacted Mont29, but he says that he hasn't commit right in git.
And, I can't see Ideasman_42 in right window in IRC.

Is there any person who can give me access git master repos?

I contacted Mont29, but he says that he hasn't commit right in git. And, I can't see Ideasman_42 in right window in IRC. Is there any person who can give me access git master repos?
Member

Ideasman_42 right now is in IRC. his nick "Ideasman42". Can you go into IRC right now?

Ideasman_42 right now is in IRC. his nick "Ideasman42". Can you go into IRC right now?
Member

Ok, i talked him. But you need to find him in the IRC. But he has Austarlian time.

hi
we have a discussion in the blender.developer here https://developer.blender.org/T38460
@nutti will contact you to commit new refactored CopyanPaste addon
CopyAndPaste*
eeh, I was going to head off to bed soon
so - if its quick its fine
but now isnt great time
:)
ahh sorry
in ~8hrs is 8am

Ok, i talked him. But you need to find him in the IRC. But he has Austarlian time. <ideasman42> hi <mifth> we have a discussion in the blender.developer here https://developer.blender.org/T38460 <mifth> @nutti will contact you to commit new refactored CopyanPaste addon <mifth> CopyAndPaste* <ideasman42> eeh, I was going to head off to bed soon <ideasman42> so - if its quick its fine <ideasman42> but now isnt great time <mifth> :) <mifth> ahh sorry <ideasman42> in ~8hrs is 8am
Author
Member

Thank you for talking to Ideasman42.

But he has Austarlian time.

It's too bad :(
I can talk at 21:00 to 1:00 in Australian time on a week day.
OK, I will talk him on a holiday.

Thank you for talking to Ideasman42. > But he has Austarlian time. It's too bad :( I can talk at 21:00 to 1:00 in Australian time on a week day. OK, I will talk him on a holiday.
Member

No rush. You will do it! :)

Also, could you make a blenderartists thread? So that people can make posts abut bugs/features.

No rush. You will do it! :) Also, could you make a blenderartists thread? So that people can make posts abut bugs/features.
nutti changed title from Copy And Paste UV Coordinates to Copy and Paste UV Coordinates 2014-08-31 13:23:34 +02:00
Author
Member

I contacted @Ideasman42.

However, @Ideasman42 says that this add-on should be reviewed before commit.
so, i revised add-on to meet the pep8 and best practice.
and, i created code review site here: https://developer.blender.org/D768

please teach me, what should I do next before commit?

I contacted @Ideasman42. However, @Ideasman42 says that this add-on should be reviewed before commit. so, i revised add-on to meet the pep8 and best practice. and, i created code review site here: https://developer.blender.org/D768 please teach me, what should I do next before commit?
Member

Hello!

Great that you did it! Actually, i have never did commit-review. I just committed to "release/scripts/addons_contrib" blender git repo. I think you need to talk to @Ideasman42 again and show him your new created commit .
If you will have any troubles just write me here again.

Hello! Great that you did it! Actually, i have never did commit-review. I just committed to "release/scripts/addons_contrib" blender git repo. I think you need to talk to @Ideasman42 again and show him your new created [commit ](https://developer.blender.org/D768). If you will have any troubles just write me here again.
Member

@nutti @Ideasman_42 accepted your commit review.
https://developer.blender.org/D768

Can you commit it? Or it's committed?

@nutti @Ideasman_42 accepted your commit review. https://developer.blender.org/D768 Can you commit it? Or it's committed?
Author
Member

I revised scripts to reflect review.
And I tried to push master repo in reference to http://wiki.blender.org/index.php/Dev:Doc/Tools/Git, however I couldn't.

The last two procedure failed with "Permission denied".
@Ideasman_42 may add me to commit access, so I have no idea to solve this error.

git pull --rebase
git push

I revised scripts to reflect review. And I tried to push master repo in reference to http://wiki.blender.org/index.php/Dev:Doc/Tools/Git, however I couldn't. The last two procedure failed with "Permission denied". @Ideasman_42 may add me to commit access, so I have no idea to solve this error. git pull --rebase git push
Member

Just contact to @Ideasman42 in IRC. And ask him to add you to commit access. he should add you.

The last thing left! :) You will do it!

Just contact to @Ideasman42 in IRC. And ask him to add you to commit access. he should add you. The last thing left! :) You will do it!
Author
Member

Finally, i commited my plugin!

i created account on http://blenderartists.org/forum/index.php, however i couldn't post new thread on there.
How should i to post new thread?

Finally, i commited my plugin! i created account on http://blenderartists.org/forum/index.php, however i couldn't post new thread on there. How should i to post new thread?
Member

Great news! Thank you for your super cool contribution! I'll use it every day on my job for UV matters.

Just login. And press "Post New Thread" orang button. Here http://blenderartists.org/forum/forumdisplay.php?48-Released-Scripts-and-Themes

Great news! Thank you for your super cool contribution! I'll use it every day on my job for UV matters. Just login. And press "Post New Thread" orang button. Here http://blenderartists.org/forum/forumdisplay.php?48-Released-Scripts-and-Themes
Author
Member

I could post new thread about this plugin.
http://blenderartists.org/forum/showthread.php?348421-Addon-Copy-and-Paste-UV-Coordinates

All tasks may be completed, but I will continue developing and maintaining this plugin.

Thanks for your kindness in this task.
It's a great opportunity for me to develop add-on.

I could post new thread about this plugin. http://blenderartists.org/forum/showthread.php?348421-Addon-Copy-and-Paste-UV-Coordinates All tasks may be completed, but I will continue developing and maintaining this plugin. Thanks for your kindness in this task. It's a great opportunity for me to develop add-on.
LittleCatMan commented 2014-10-29 08:24:13 +01:00 (Migrated from localhost:3001)

Added subscriber: @LittleCatMan

Added subscriber: @LittleCatMan
LittleCatMan commented 2014-10-29 08:24:13 +01:00 (Migrated from localhost:3001)

I've run into a problem with this script. I'm not sure if it's a limitation of Blender, an error in the script, or user error but it goes as follows:

I have 2 nearly identical models which were built separately: Wall, Rounded Corner Wall. These two objects have the exact same number of faces, identical indexes manually setup via selecting rows of faces, and using (W > Sort Mesh Elements > Selected) and I've confirmed they are identical face indexes using an add on called: "Index Visualiser (BMesh)" to show the index of each face.

When I copy the UV from my properly set up mesh "Wall" and copy paste it to the new mesh "Rounded Corner Wall", the placement of the UV is correct, but each piece seems to be rotated 90 degrees, and squashed because of the rotation giving it the wrong ratio.

I've not been able to find any work around for this short of:

  • Select 1 face on Object 1.
  • Copy UVs
  • Select 1 face on Object 2.
  • Paste UVs.
  • Repeat until every last face has been copy-pasted 1 by 1.
    (Obviously not an efficient use of this script.)

Any help would be greatly appreciated. The script seems very promising, and I hope there's a solution for this problem. Thanks.

I've run into a problem with this script. I'm not sure if it's a limitation of Blender, an error in the script, or user error but it goes as follows: I have 2 nearly identical models which were built separately: Wall, Rounded Corner Wall. These two objects have the exact same number of faces, identical indexes manually setup via selecting rows of faces, and using (W > Sort Mesh Elements > Selected) and I've confirmed they are identical face indexes using an add on called: "Index Visualiser (BMesh)" to show the index of each face. When I copy the UV from my properly set up mesh "Wall" and copy paste it to the new mesh "Rounded Corner Wall", the placement of the UV is correct, but each piece seems to be rotated 90 degrees, and squashed because of the rotation giving it the wrong ratio. I've not been able to find any work around for this short of: - Select 1 face on Object 1. - Copy UVs - Select 1 face on Object 2. - Paste UVs. - Repeat until every last face has been copy-pasted 1 by 1. (Obviously not an efficient use of this script.) Any help would be greatly appreciated. The script seems very promising, and I hope there's a solution for this problem. Thanks.

Added subscriber: @RomboutVersluijs

Added subscriber: @RomboutVersluijs

Hi there,

I was testing this addon again and wanted to copy a part of a uv map from the same mesh over to another uv map in the mesh. This couldnt be done or at least i wasnt able to do so. My workaround was copying the mesh than copy the part of the uvmap over to the copied mesh stitch it all together and copy all of this back to the original mesh. Is there a possibility to make it work on a single mesh between different uv maps?

Hi there, I was testing this addon again and wanted to copy a part of a uv map from the same mesh over to another uv map in the mesh. This couldnt be done or at least i wasnt able to do so. My workaround was copying the mesh than copy the part of the uvmap over to the copied mesh stitch it all together and copy all of this back to the original mesh. Is there a possibility to make it work on a single mesh between different uv maps?
Author
Member

When I copy the UV from my properly set up mesh "Wall" and copy paste it to the new mesh "Rounded Corner Wall", the placement of the UV is correct, but each piece seems to be rotated 90 degrees, and squashed because of the rotation giving it the wrong ratio.

Sorry, I couldn't understand your problems.
Please show me your problems with some screenshots.
I think this script may have problem at copying ordering.

I've not been able to find any work around for this short of:

  • Select 1 face on Object 1.
  • Copy UVs
  • Select 1 face on Object 2.
  • Paste UVs.
  • Repeat until every last face has been copy-pasted 1 by 1.
    (Obviously not an efficient use of this script.)

From this, do you intend to copy more than two faces at once?

> When I copy the UV from my properly set up mesh "Wall" and copy paste it to the new mesh "Rounded Corner Wall", the placement of the UV is correct, but each piece seems to be rotated 90 degrees, and squashed because of the rotation giving it the wrong ratio. Sorry, I couldn't understand your problems. Please show me your problems with some screenshots. I think this script may have problem at copying ordering. > I've not been able to find any work around for this short of: > - Select 1 face on Object 1. > - Copy UVs > - Select 1 face on Object 2. > - Paste UVs. > - Repeat until every last face has been copy-pasted 1 by 1. > (Obviously not an efficient use of this script.) > From this, do you intend to copy more than two faces at once?
Author
Member

I was testing this addon again and wanted to copy a part of a uv map from the same mesh over to another uv map in the mesh. This couldnt be done or at least i wasnt able to do so. My workaround was copying the mesh than copy the part of the uvmap over to the copied mesh stitch it all together and copy all of this back to the original mesh. Is there a possibility to make it work on a single mesh between different uv maps?

Do you want to copy mesh between "UV maps" rather than between "Meshes"?
Some research must be needed to work this. Please wait for me...

> I was testing this addon again and wanted to copy a part of a uv map from the same mesh over to another uv map in the mesh. This couldnt be done or at least i wasnt able to do so. My workaround was copying the mesh than copy the part of the uvmap over to the copied mesh stitch it all together and copy all of this back to the original mesh. Is there a possibility to make it work on a single mesh between different uv maps? Do you want to copy mesh between "UV maps" rather than between "Meshes"? Some research must be needed to work this. Please wait for me...
LittleCatMan commented 2014-11-02 16:23:11 +01:00 (Migrated from localhost:3001)

In #38460#267549, @nutti wrote:

When I copy the UV from my properly set up mesh "Wall" and copy paste it to the new mesh "Rounded Corner Wall", the placement of the UV is correct, but each piece seems to be rotated 90 degrees, and squashed because of the rotation giving it the wrong ratio.

Sorry, I couldn't understand your problems.
Please show me your problems with some screenshots.
I think this script may have problem at copying ordering.

I've not been able to find any work around for this short of:

  • Select 1 face on Object 1.
  • Copy UVs
  • Select 1 face on Object 2.
  • Paste UVs.
  • Repeat until every last face has been copy-pasted 1 by 1.
    (Obviously not an efficient use of this script.)

From this, do you intend to copy more than two faces at once?

I've made a video to demonstrate the issue on a simple plane.

http://youtu.be/nOq35BBCNKo

This is meant to show the problem on something very simple, but should be applicable to more complicated things as well. This script would be way more powerful if it could take into account HOW a selection is made, and how the object sits in relation to the world. (Currently, the faces will sometimes copy over with odd rotations if the faces were created using fill, or extrude.) So, being able to use the object's rotation in relation to the environment, could be really useful.

> In #38460#267549, @nutti wrote: >> When I copy the UV from my properly set up mesh "Wall" and copy paste it to the new mesh "Rounded Corner Wall", the placement of the UV is correct, but each piece seems to be rotated 90 degrees, and squashed because of the rotation giving it the wrong ratio. > > Sorry, I couldn't understand your problems. > Please show me your problems with some screenshots. > I think this script may have problem at copying ordering. > >> I've not been able to find any work around for this short of: >> - Select 1 face on Object 1. >> - Copy UVs >> - Select 1 face on Object 2. >> - Paste UVs. >> - Repeat until every last face has been copy-pasted 1 by 1. >> (Obviously not an efficient use of this script.) >> > > From this, do you intend to copy more than two faces at once? I've made a video to demonstrate the issue on a simple plane. http://youtu.be/nOq35BBCNKo This is meant to show the problem on something very simple, but should be applicable to more complicated things as well. This script would be way more powerful if it could take into account HOW a selection is made, and how the object sits in relation to the world. (Currently, the faces will sometimes copy over with odd rotations if the faces were created using fill, or extrude.) So, being able to use the object's rotation in relation to the environment, could be really useful.
Author
Member

I was testing this addon again and wanted to copy a part of a uv map from the same mesh over to another uv map in the mesh. This couldnt be done or at least i wasnt able to do so. My workaround was copying the mesh than copy the part of the uvmap over to the copied mesh stitch it all together and copy all of this back to the original mesh. Is there a possibility to make it work on a single mesh between different uv maps?

OK, I have revised script, and this script supports copy/paste between UV maps.
New menu (Copy UV Map, Paste UV Map) are added.
You can try this script below link. (Download from "Download ZIP" button.)

https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext

Some bugs may be exist, because this script has not tested yet.
If you have no problem, I will submit this plugin to blender repos.
Thanks.

> I was testing this addon again and wanted to copy a part of a uv map from the same mesh over to another uv map in the mesh. This couldnt be done or at least i wasnt able to do so. My workaround was copying the mesh than copy the part of the uvmap over to the copied mesh stitch it all together and copy all of this back to the original mesh. Is there a possibility to make it work on a single mesh between different uv maps? OK, I have revised script, and this script supports copy/paste between UV maps. New menu (Copy UV Map, Paste UV Map) are added. You can try this script below link. (Download from "Download ZIP" button.) https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext Some bugs may be exist, because this script has not tested yet. If you have no problem, I will submit this plugin to blender repos. Thanks.
Author
Member

I've made a video to demonstrate the issue on a simple plane.

http://youtu.be/nOq35BBCNKo

This is meant to show the problem on something very simple, but should be applicable to more complicated things as well. This script would be way more powerful if it could take into account HOW a selection is made, and how the object sits in relation to the world. (Currently, the faces will sometimes copy over with odd rotations if the faces were created using fill, or extrude.) So, being able to use the object's rotation in relation to the environment, could be really useful.

Thank you for your great sample.
I'll check this problem.

> I've made a video to demonstrate the issue on a simple plane. > > http://youtu.be/nOq35BBCNKo > > This is meant to show the problem on something very simple, but should be applicable to more complicated things as well. This script would be way more powerful if it could take into account HOW a selection is made, and how the object sits in relation to the world. (Currently, the faces will sometimes copy over with odd rotations if the faces were created using fill, or extrude.) So, being able to use the object's rotation in relation to the environment, could be really useful. Thank you for your great sample. I'll check this problem.
Author
Member

I understood this problem.
However, this script can't associate faces between source and destination, and I don't know how.

So, some rules are needed.
I'm thinking that select ordering is best for determining copy ordering.
However, I don't know how to get history of face selection.
BMesh may be a good candidate, but there is no tutorials.

If anyone who know how to get history of face selection, please tell me about it.

I understood this problem. However, this script can't associate faces between source and destination, and I don't know how. So, some rules are needed. I'm thinking that select ordering is best for determining copy ordering. However, I don't know how to get history of face selection. BMesh may be a good candidate, but there is no tutorials. If anyone who know how to get history of face selection, please tell me about it.

In #38460#268731, @nutti wrote:

I was testing this addon again and wanted to copy a part of a uv map from the same mesh over to another uv map in the mesh. This couldnt be done or at least i wasnt able to do so. My workaround was copying the mesh than copy the part of the uvmap over to the copied mesh stitch it all together and copy all of this back to the original mesh. Is there a possibility to make it work on a single mesh between different uv maps?

OK, I have revised script, and this script supports copy/paste between UV maps.
New menu (Copy UV Map, Paste UV Map) are added.
You can try this script below link. (Download from "Download ZIP" button.)

https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext

Some bugs may be exist, because this script has not tested yet.
If you have no problem, I will submit this plugin to blender repos.
Thanks.

Wow thanks Nutti! Works perfect... this saves a shit load of time. I havent noticed or bumped into errors yet!
Thanks for the help

> In #38460#268731, @nutti wrote: >> I was testing this addon again and wanted to copy a part of a uv map from the same mesh over to another uv map in the mesh. This couldnt be done or at least i wasnt able to do so. My workaround was copying the mesh than copy the part of the uvmap over to the copied mesh stitch it all together and copy all of this back to the original mesh. Is there a possibility to make it work on a single mesh between different uv maps? > > OK, I have revised script, and this script supports copy/paste between UV maps. > New menu (Copy UV Map, Paste UV Map) are added. > You can try this script below link. (Download from "Download ZIP" button.) > > https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext > > Some bugs may be exist, because this script has not tested yet. > If you have no problem, I will submit this plugin to blender repos. > Thanks. Wow thanks Nutti! Works perfect... this saves a shit load of time. I havent noticed or bumped into errors yet! Thanks for the help
Author
Member

I've made a video to demonstrate the issue on a simple plane.

http://youtu.be/nOq35BBCNKo

This is meant to show the problem on something very simple, but should be applicable to more complicated things as well. This script would be way more powerful if it could take into account HOW a selection is made, and how the object sits in relation to the world. (Currently, the faces will sometimes copy over with odd rotations if the faces were created using fill, or extrude.) So, being able to use the object's rotation in relation to the environment, could be really useful.

OK, I released rc2 version about this plugin.
Selection sequence copy/paste is now available at this version.
You can try this script below link. (Download from "Download ZIP" button.)
https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext

This plugin will meet the requirement what you want.
Procedure is as follows.

  • Select faces by clicking (to be copied)
  • Execute "U" - "Copy UV (Selection Sequence)"
  • Select faces by clicking (to be pasted)
  • Execute "U" - "Paste UV (Selection Sequence)"

If you have no problem, I will submit this plugin to blender repos.
Thanks.

> > I've made a video to demonstrate the issue on a simple plane. > > http://youtu.be/nOq35BBCNKo > > This is meant to show the problem on something very simple, but should be applicable to more complicated things as well. This script would be way more powerful if it could take into account HOW a selection is made, and how the object sits in relation to the world. (Currently, the faces will sometimes copy over with odd rotations if the faces were created using fill, or extrude.) So, being able to use the object's rotation in relation to the environment, could be really useful. OK, I released rc2 version about this plugin. Selection sequence copy/paste is now available at this version. You can try this script below link. (Download from "Download ZIP" button.) https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext This plugin will meet the requirement what you want. Procedure is as follows. - Select faces by clicking (to be copied) - Execute "U" - "Copy UV (Selection Sequence)" - Select faces by clicking (to be pasted) - Execute "U" - "Paste UV (Selection Sequence)" If you have no problem, I will submit this plugin to blender repos. Thanks.
Member
Hi @Nutty . I answered in the BA forum. http://blenderartists.org/forum/showthread.php?348421-Addon-Copy-and-Paste-UV-Coordinates&p=2779421&viewfull=1#post2779421
Author
Member
I released version 2.0-rc5. https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext
Member
Hi @Nutty . I added a comment here http://blenderartists.org/forum/showthread.php?348421-Addon-Copy-and-Paste-UV-Coordinates&p=2783323&viewfull=1#post2783323
Member

Hi @Nutty .

I found the way how to fix UVs flipping.

I did Pull Request on Github: https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/pull/2
And here is my test video of how it works: http://youtu.be/QCg2TL-NQOw

I also wrote at the forum.

Hi @Nutty . I found the way how to fix UVs flipping. I did Pull Request on Github: https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/pull/2 And here is my test video of how it works: http://youtu.be/QCg2TL-NQOw I also wrote at the forum.
daimon38 commented 2014-12-24 11:19:39 +01:00 (Migrated from localhost:3001)

Added subscriber: @daimon38

Added subscriber: @daimon38
Member

Hi.
There was change in bmesh in 2.73.
Do we need to change something?
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.73/Addons

Hi. There was change in bmesh in 2.73. Do we need to change something? http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.73/Addons
Author
Member

I submit patch for review.

https://developer.blender.org/D956

@PaulGeraskin
I changed to my plugin for 2.73.
However, this is ad hoc revision.
I will fix this issue for next release.

I submit patch for review. https://developer.blender.org/D956 @PaulGeraskin I changed to my plugin for 2.73. However, this is ad hoc revision. I will fix this issue for next release.
Author
Member

By the way, should I assign reviewer to this patch?
If yes, who?

By the way, should I assign reviewer to this patch? If yes, who?
Member

If you have commit access - you can just commit without the review. I think.
As you are the creator and the maintainer of this cool script.

If you have commit access - you can just commit without the review. I think. As you are the creator and the maintainer of this cool script.
Member

But if you want to commit a new addon - then you need to make a review request sure.

Anyway - you can always pick @ideasman_42 in IRC channel. He is cool and always can help.

But if you want to commit a new addon - then you need to make a review request sure. Anyway - you can always pick @ideasman_42 in IRC channel. He is cool and always can help.
Author
Member

Finally, I pushed latest plugin to master blender repos.
And, I released ver2.0 on my GitHub page.

https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/releases/tag/v2.0

Thank you for your help.

Finally, I pushed latest plugin to master blender repos. And, I released ver2.0 on my GitHub page. https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/releases/tag/v2.0 Thank you for your help.
Member

Hi.

I downloaded 2.73 nightly build. https://builder.blender.org/download/
But i get crash when i copied then pasted UVs:
Traceback (most recent call last):

File "/home/mifth/Documents/soft/blender/2.73/scripts/addons_contrib/uv_copy_and_paste_uv.py", line 126, in execute
  src_uv_map, dest_obj, dest_sel_face_info)
File "/home/mifth/Documents/soft/blender/2.73/scripts/addons_contrib/uv_copy_and_paste_uv.py", line 499, in paste_opt
  if self.flip_copied_uv is True:
File "/home/mifth/Documents/soft/blender/2.73/scripts/modules/bpy_types.py", line 594, in __getattribute__
  return super().__getattribute__(attr)

AttributeError: 'CopyAndPasteUVPasteUV' object has no attribute 'flip_copied_uv'

location: :-1

Hi. I downloaded 2.73 nightly build. https://builder.blender.org/download/ But i get crash when i copied then pasted UVs: Traceback (most recent call last): ``` File "/home/mifth/Documents/soft/blender/2.73/scripts/addons_contrib/uv_copy_and_paste_uv.py", line 126, in execute src_uv_map, dest_obj, dest_sel_face_info) File "/home/mifth/Documents/soft/blender/2.73/scripts/addons_contrib/uv_copy_and_paste_uv.py", line 499, in paste_opt if self.flip_copied_uv is True: File "/home/mifth/Documents/soft/blender/2.73/scripts/modules/bpy_types.py", line 594, in __getattribute__ return super().__getattribute__(attr) ``` AttributeError: 'CopyAndPasteUVPasteUV' object has no attribute 'flip_copied_uv' location: <unknown location>:-1
Author
Member

Hi,

@PaulGeraskin
I revised this bug.
Script for testing is released here.

https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/tree/develop

Hi, @PaulGeraskin I revised this bug. Script for testing is released here. https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/tree/develop
Member

@nutty it works great now! Thanks a lot!

@nutty it works great now! Thanks a lot!

Added subscriber: @shadoskill

Added subscriber: @shadoskill

@nutti Hi, just downloaded 2.73 had the same issue as @PaulGeraskin, downloaded the dev version. It copies the uv correctly in blender but when a texture is applied its all messed up.
http://i.imgur.com/5kIQUYY.png
http://i.imgur.com/tGDOIC7.png
http://i.imgur.com/M6FNCPw.png

@nutti Hi, just downloaded 2.73 had the same issue as @PaulGeraskin, downloaded the dev version. It copies the uv correctly in blender but when a texture is applied its all messed up. http://i.imgur.com/5kIQUYY.png http://i.imgur.com/tGDOIC7.png http://i.imgur.com/M6FNCPw.png
Author
Member

Does this problem arise after this version(2.1)?
And did you copy many UVs all at once?

If you want copy more than one UVs, you should use selection sequence.
Normal copy/paste operation support only one polygon.

Does this problem arise after this version(2.1)? And did you copy many UVs all at once? If you want copy more than one UVs, you should use selection sequence. Normal copy/paste operation support only one polygon.
Member

@shadoskill Normal copy/paste operation is supposed to copy UVs from the same meshes. For example, you duplicated 20 cubes but you forgot to uwrap your original cube. You can unwrap one original cube then paste its UVs into other duplicates.

@shadoskill Normal copy/paste operation is supposed to copy UVs from the same meshes. For example, you duplicated 20 cubes but you forgot to uwrap your original cube. You can unwrap one original cube then paste its UVs into other duplicates.

In #38460#281322, @nutti wrote:
Does this problem arise after this version(2.1)?
And did you copy many UVs all at once?

If you want copy more than one UVs, you should use selection sequence.
Normal copy/paste operation support only one polygon.

Selection sequence worked, but that is going to be a pain to select 2.5k faces manually in the exact same order on 4 separate meshes..
They all are identical, just they are stretched differently.

> In #38460#281322, @nutti wrote: > Does this problem arise after this version(2.1)? > And did you copy many UVs all at once? > > If you want copy more than one UVs, you should use selection sequence. > Normal copy/paste operation support only one polygon. Selection sequence worked, but that is going to be a pain to select 2.5k faces manually in the exact same order on 4 separate meshes.. They all are identical, just they are stretched differently.
Member

@shadoskill could you support your mesh? I'll test on my machine.

@shadoskill could you support your mesh? I'll test on my machine.
Author
Member

@shadoskill

Yeah, I think it's painful to select many faces manually.

This issue is reported while ago, and I'm trying to support.
However, I have no idea to implement this one now.
I want to know the answer "How to identify same shapes?".
Human can identify similar or same shapes, however "computer" not.

But... Thanks for your report!!
I will make efforts to support your suggestion.

@shadoskill Yeah, I think it's painful to select many faces manually. This issue is reported while ago, and I'm trying to support. However, I have no idea to implement this one now. I want to know the answer "How to identify same shapes?". Human can identify similar or same shapes, however "computer" not. But... Thanks for your report!! I will make efforts to support your suggestion.

In #38460#281364, @PaulGeraskin wrote:
@shadoskill could you support your mesh? I'll test on my machine.

Shado_Model_UVIssue.blend

In #38460#281372, @nutti wrote:
@shadoskill

Yeah, I think it's painful to select many faces manually.

This issue is reported while ago, and I'm trying to support.
However, I have no idea to implement this one now.
I want to know the answer "How to identify same shapes?".
Human can identify similar or same shapes, however "computer" not.

But... Thanks for your report!!
I will make efforts to support your suggestion.

Not sure how any of that stuff works. But in my head, If you seam the orginal mesh and the one to copy to the exact same way, maby something similar to how blender does its unrapping. Its a thought, but no idea if it helps or not.

> In #38460#281364, @PaulGeraskin wrote: > @shadoskill could you support your mesh? I'll test on my machine. [Shado_Model_UVIssue.blend](https://archive.blender.org/developer/F137118/Shado_Model_UVIssue.blend) > In #38460#281372, @nutti wrote: > @shadoskill > > Yeah, I think it's painful to select many faces manually. > > This issue is reported while ago, and I'm trying to support. > However, I have no idea to implement this one now. > I want to know the answer "How to identify same shapes?". > Human can identify similar or same shapes, however "computer" not. > > But... Thanks for your report!! > I will make efforts to support your suggestion. Not sure how any of that stuff works. But in my head, If you seam the orginal mesh and the one to copy to the exact same way, maby something similar to how blender does its unrapping. Its a thought, but no idea if it helps or not.
Member

It can work only in this way http://youtu.be/Z-nJKG1lLic
Original and duplicate should have the same ammount of vertices and the same polygons.
This script is very useful for game development. For example to copy UVs into 10 wooden bulks.

It can work only in this way http://youtu.be/Z-nJKG1lLic Original and duplicate should have the same ammount of vertices and the same polygons. This script is very useful for game development. For example to copy UVs into 10 wooden bulks.
Author
Member

Released v2.1.

https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/releases/tag/v2.1

This version added no new features, and only fixed bugs for blender 2.73.

Released v2.1. https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/releases/tag/v2.1 This version added no new features, and only fixed bugs for blender 2.73.
Author
Member

I released v2.2-rc2.

https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/tree/develop

If there is a problem, please tell me.
If there are no problem until next week, I will release v2.2 and push this plugin to blender's master repos.

I released v2.2-rc2. https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/tree/develop If there is a problem, please tell me. If there are no problem until next week, I will release v2.2 and push this plugin to blender's master repos.
Author
Member

I released v2.2!!
This version fixed bug.

https://github.com/nutti/Copy-And-Pa...eases/tag/v2.2

I released v2.2!! This version fixed bug. https://github.com/nutti/Copy-And-Pa...eases/tag/v2.2

Added subscriber: @zeauro

Added subscriber: @zeauro

Currently, UV editor have a toolbar. Is it possible to give access of this addon tools from UVeditor ?

Currently, UV editor have a toolbar. Is it possible to give access of this addon tools from UVeditor ?
Author
Member

@zeauro

Year, OK.
What do you want to do by accessing this add-on?

@zeauro Year, OK. What do you want to do by accessing this add-on?
Member

@zeauro I think it does not need to n\be in UV editor. As we use only selected faces. Not UVs.

Also, if you check new Modo 901 features of Copy/Paste UVs - they do it in 3d viewport. https://vimeo.com/124320824

Right now i think all is ok and works perfectly in 3d viewport menu.

@zeauro I think it does not need to n\be in UV editor. As we use only selected faces. Not UVs. Also, if you check new Modo 901 features of Copy/Paste UVs - they do it in 3d viewport. https://vimeo.com/124320824 Right now i think all is ok and works perfectly in 3d viewport menu.

@PaulGeraskin , in this video, it is a continuous mesh.It looks more like data transfer between two objects than copy/paste UVs between selection sets of same mesh.

@nutti, I would like to copy/paste UVs for similar face region selections sets in UV editor.
After an automatic unwrap, Islands would be packed as 2d elements all easily accessible into UVeditor bounds.
But to select your islands into 3D, you may have to pan, to zoom in/ zoom out or rotate around your 3D model.

With synchronization on, there is no difference between selection of face sets in 3Dview and selection of corresponding UV Islands in UV Editor.

And for people that want to use copy/paste into 3Dview, there could be also an addon panel into shading/UVs Tab.

@PaulGeraskin , in this video, it is a continuous mesh.It looks more like data transfer between two objects than copy/paste UVs between selection sets of same mesh. @nutti, I would like to copy/paste UVs for similar face region selections sets in UV editor. After an automatic unwrap, Islands would be packed as 2d elements all easily accessible into UVeditor bounds. But to select your islands into 3D, you may have to pan, to zoom in/ zoom out or rotate around your 3D model. With synchronization on, there is no difference between selection of face sets in 3Dview and selection of corresponding UV Islands in UV Editor. And for people that want to use copy/paste into 3Dview, there could be also an addon panel into shading/UVs Tab.
Member

@zeauro no. This is left panel of the 3d viewport in modo. Just like our left panel. But in modo it can be detatched to any panel.
As i said before - all the work happens in 3d viewport mostly.

@zeauro no. This is left panel of the 3d viewport in modo. Just like our left panel. But in modo it can be detatched to any panel. As i said before - all the work happens in 3d viewport mostly.
Author
Member

GitHub repository name has changed.

Newer link is bellow.

Repository: https://github.com/nutti/Copy-And-Paste-UV
Newest release: https://github.com/nutti/Copy-And-Paste-UV/releases/tag/v2.2

GitHub repository name has changed. Newer link is bellow. Repository: https://github.com/nutti/Copy-And-Paste-UV Newest release: https://github.com/nutti/Copy-And-Paste-UV/releases/tag/v2.2
Author
Member

@zeauro
I'll released v3.0-rc version near future.
Please confirm this version.
If you want to request new feature to this version, you can request feature from issues on GitHub.
https://github.com/nutti/Copy-And-Paste-UV/issues
Your request is interesting, so I want to discuss about your request too.
Thanks!

@zeauro I'll released v3.0-rc version near future. Please confirm this version. If you want to request new feature to this version, you can request feature from issues on GitHub. https://github.com/nutti/Copy-And-Paste-UV/issues Your request is interesting, so I want to discuss about your request too. Thanks!
Author
Member

Hi,

I made a milestone to v4.0.
If anyone has feature request or bug report, please make issues.
https://github.com/nutti/Copy-And-Paste-UV/milestones/Version%204.0

Thanks.

Hi, I made a milestone to v4.0. If anyone has feature request or bug report, please make issues. https://github.com/nutti/Copy-And-Paste-UV/milestones/Version%204.0 Thanks.
Author
Member

I released v3.0-rc1.
If there are any problem, I'll submit source code review and push blender's master repos.

https://github.com/nutti/Copy-And-Paste-UV/tree/develop

In this version, I added new features as follows.

  1. Flip/Rotate UV
    You can flip or rotate UVs.
    https://www.youtube.com/watch?v=qp2Kn1fN96Q

  2. Transfer UV
    You can copy/paste many UVs at once.
    You NEED only select one face.
    https://www.youtube.com/watch?v=rbP0hExl3Zc
    https://www.youtube.com/watch?v=p1W6jugsyZw

I released v3.0-rc1. If there are any problem, I'll submit source code review and push blender's master repos. https://github.com/nutti/Copy-And-Paste-UV/tree/develop In this version, I added new features as follows. 1. Flip/Rotate UV You can flip or rotate UVs. https://www.youtube.com/watch?v=qp2Kn1fN96Q 2. Transfer UV You can copy/paste many UVs at once. You NEED only select one face. https://www.youtube.com/watch?v=rbP0hExl3Zc https://www.youtube.com/watch?v=p1W6jugsyZw
Author
Member

@nutti, I would like to copy/paste UVs for similar face region selections sets in UV editor.
After an automatic unwrap, Islands would be packed as 2d elements all easily accessible into UVeditor bounds.
But to select your islands into 3D, you may have to pan, to zoom in/ zoom out or rotate around your 3D model.

With synchronization on, there is no difference between selection of face sets in 3Dview and selection of corresponding UV Islands in UV Editor.

And for people that want to use copy/paste into 3Dview, there could be also an addon panel into shading/UVs Tab.

@zeauro, @PaulGeraskin
I make issue about this.
https://github.com/nutti/Copy-And-Paste-UV/issues/19

> @nutti, I would like to copy/paste UVs for similar face region selections sets in UV editor. > After an automatic unwrap, Islands would be packed as 2d elements all easily accessible into UVeditor bounds. > But to select your islands into 3D, you may have to pan, to zoom in/ zoom out or rotate around your 3D model. > > With synchronization on, there is no difference between selection of face sets in 3Dview and selection of corresponding UV Islands in UV Editor. > > And for people that want to use copy/paste into 3Dview, there could be also an addon panel into shading/UVs Tab. @zeauro, @PaulGeraskin I make issue about this. https://github.com/nutti/Copy-And-Paste-UV/issues/19
Author
Member

I submitted v3.0 code to review.
https://developer.blender.org/D1315

I submitted v3.0 code to review. https://developer.blender.org/D1315
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

@nutti
hi, I'm closing this task as the addon is already in contrib, it looks like we have a more recent/same version than the diff:
https://developer.blender.org/D1315 has version 3.0, contrib has version 3.2.
I think the diff could be closed too.
No need to make diffs for each change, minor updates & bug fixes are fine to commit on your own. If your concerned about a new update, please create a new task in the patch section & we can help you. https://developer.blender.org/maniphest/project/3/type/Patch/
Thanks.

@nutti hi, I'm closing this task as the addon is already in contrib, it looks like we have a more recent/same version than the diff: https://developer.blender.org/D1315 has version 3.0, contrib has version 3.2. I think the diff could be closed too. No need to make diffs for each change, minor updates & bug fixes are fine to commit on your own. If your concerned about a new update, please create a new task in the patch section & we can help you. https://developer.blender.org/maniphest/project/3/type/Patch/ Thanks.
Member

By the way, 3.2 version has a good feature.
Topology based copy/paste.
Just like in Houdini and modo.

http://www.youtube.com/watch?v=ddq1J_y1RMc

By the way, 3.2 version has a good feature. Topology based copy/paste. Just like in Houdini and modo. http://www.youtube.com/watch?v=ddq1J_y1RMc
Author
Member

@BrendonMurphy

Thanks.
I think you can close this task.
I will create new task if big change is occurred about this add-on.

@PaulGeraskin

Thank you for your contribution.
But I think we should close this task because it's too old task.

@BrendonMurphy Thanks. I think you can close this task. I will create new task if big change is occurred about this add-on. @PaulGeraskin Thank you for your contribution. But I think we should close this task because it's too old task.

Added subscriber: @erikwelling2200

Added subscriber: @erikwelling2200

Removed subscriber: @erikwelling2200

Removed subscriber: @erikwelling2200
Sign in to join this conversation.
No Milestone
No project
No Assignees
9 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#38460
No description provided.