Copy and Paste UV Coordinates #38460
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
9 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#38460
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Any problems and comments are welcome.
Thanks.
Changed status to: 'Open'
Added subscriber: @nutti
Added subscriber: @Cattrina
Too bad this does not copy seams aswell :(
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.
Added subscriber: @PaulGeraskin
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.
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
OK, but I'm newcommer, I would like to know where should I talk to @ideasman42.
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.
Thanks for sharing information!
chat tool !?
Oops, I can't speak English well :(
Is there another way to contact @Ideasman42 ?
For example, e-mail or bbs etc...
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.
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'm reading wiki page.
I have some questions about it.
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
Is this old comment solve the problem?
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?
I added public ssh key from setting in developer.blender.org.
Maybe, not yet.
Will commit access be added by Ideasman_42 or Mont29?
I guess both can add the access.
For my scripts - Ideasman_42 added me the the access.
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?
Ideasman_42 right now is in IRC. his nick "Ideasman42". Can you go into IRC right now?
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
Thank you for talking to Ideasman42.
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.
No rush. You will do it! :)
Also, could you make a blenderartists thread? So that people can make posts abut bugs/features.
Copy And Paste UV Coordinatesto Copy and Paste UV CoordinatesI 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?
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.
@nutti @Ideasman_42 accepted your commit review.
https://developer.blender.org/D768
Can you commit it? Or it's committed?
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
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!
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?
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
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.
Added subscriber: @LittleCatMan
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:
(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
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?
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.
From this, do you intend to copy more than two faces at once?
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'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 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.
Thank you for your great sample.
I'll check this problem.
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.
Wow thanks Nutti! Works perfect... this saves a shit load of time. I havent noticed or bumped into errors yet!
Thanks for the help
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.
If you have no problem, I will submit this plugin to blender repos.
Thanks.
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
I released version 2.0-rc5.
https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext
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
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.
Added subscriber: @daimon38
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
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.
By the way, should I assign reviewer to this patch?
If yes, who?
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.
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.
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.
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):
AttributeError: 'CopyAndPasteUVPasteUV' object has no attribute 'flip_copied_uv'
location: :-1
Hi,
@PaulGeraskin
I revised this bug.
Script for testing is released here.
https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext/tree/develop
@nutty it works great now! Thanks a lot!
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
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.
@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.
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.
@shadoskill could you support your mesh? I'll test on my machine.
@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.
Shado_Model_UVIssue.blend
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.
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.
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.
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!!
This version fixed bug.
https://github.com/nutti/Copy-And-Pa...eases/tag/v2.2
Added subscriber: @zeauro
Currently, UV editor have a toolbar. Is it possible to give access of this addon tools from UVeditor ?
@zeauro
Year, OK.
What do you want to do by accessing this add-on?
@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.
@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.
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
@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!
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.
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.
Flip/Rotate UV
You can flip or rotate UVs.
https://www.youtube.com/watch?v=qp2Kn1fN96Q
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
@zeauro, @PaulGeraskin
I make issue about this.
https://github.com/nutti/Copy-And-Paste-UV/issues/19
I submitted v3.0 code to review.
https://developer.blender.org/D1315
Added subscriber: @BrendonMurphy
Changed status from 'Open' to: 'Resolved'
@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.
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
@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
Removed subscriber: @erikwelling2200