Page MenuHome

Copy settings from active face or between UV and vertex color layers.
Closed, ArchivedPublicPATCH

Description

Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.53
Category: 3D View
Python: 3.1
Script name: Mesh: Copy DrawMode
Author(s): wiseman303
Status: Closed

Features:
- Copy settings from the active face to all other selected faces.
- Copy settings from selected faces in another UV texture or vertex color layer to corresponding faces in the active layer.

Setup:
Install as an add-on. Appears under Mesh category.
For additional help see this page: http://wiki.blender.org/index.php/Doc:2.5/Manual/Extensions/Python/Add-Ons

Usage:
Pressing Ctrl-C in the 3D View while in mesh edit mode will bring up the Copy Face Settings Menu.

The following options copy settings from the active face to all other selected faces and may not appear if the mesh does not have a uv texture or vertex color layer.

- Copy Material
Material index.

- Copy Mode
Everything in the Texture Face Panel except Transp.

- Copy Transp
Transp setting from the Texture Face Panel.

- Copy Image
Image used by the face for UV texture.

- Copy UV Coords
The face's UV Coordinates.

- Copy Vertex Colors
The face's vertex colors.

The following options copy settings from selected faces in another UV texture or vertex color layer to the corresponding faces in the active layer and only appear if the mesh has at least two UV texture or vertex color layers.

- Copy Mode from layer
Everything in the Texture Face Panel except Transp.

- Copy Transp from layer
Transp setting from the Texture Face Panel.

- Copy Image from layer
Image used by the face for UV texture.

- Copy UV Coords from layer
The face's UV Coordinates.

- Copy Vertex Colors from layer
The face's vertex colors.

Finally, buttons have been added to the Texture Face Panel for copying the settings there from the active face to other selected faces in the same layer. They behave the same as the menu options 'Copy Mode' and 'Copy Transp'.

Event Timeline

Hi Adam,

there's already a script to do ctrl-C in the 3dview, see
https://projects.blender.org/tracker/index.php?func=detail&aid=22588&group_id=153&atid=468

Can you talk with him and integrate your part in that script?
I'm posting a line also there so you guys can talk :)

assigning to bassam

Heh, too bad the search feature is currently disabled. I will check out Bassam's script.

Updated version to work with newer SVN versions of Blender.

(Tested in r31607)

mesh_copy_drawmode_1_0_1.py

Oops. I was a little premature on that upload. Here's a fixed version.

(_Thoroughly_ tested in r31607)

mesh_copy_drawmode_1_0_1b.py

Fixed a crashing bug if the script was disabled and enabled multiple times.

Updated to work with r31715 api

mesh_copy_drawmode_1_0_2.py

hey Adam, Luca
Since this script works in mesh edit mode and the copy menu script works in object/pose mode there is no immeadiate conflict in keymap. However, this could be merged, allowing for future extra functionality to get crammed in in edit mode.
I lean towards combining since the idea is so similar.

hey adam,
would be cool if you can propose the merge, so once revised, we can merge with copy attributes script in svn and give you svn access so that you can work with bassam and frigi :)

if you have time we can discuss in irc, #blenderpython

Luca: Sorry I've been busy and didn't check my messages. What's your nickname on IRC?

Bassam: I also think merging the scripts would be a good idea.

There are a couple changes I'd like to make to my script. Specifically separating it into several operators so that they can have better poll behavior, which would allow unavailable operators to show up in the menu greyed out like they do in the copy attributes menu.

Unfortunately I won't have much time to work on it until the end of next week.

Hi Adam! I've merged the current state into the copy attributes script, which is now in trunk/ as opposed to contrib. I've added your name into the authors for the copy attributes addon. Once you get commit access, please work on your code in the copy attributes in trunk/ rather than the original file.
BTW I tested your previous work and it appeared functional before I merged it, I merely removed an unneeded register() call, since metaclassing made it not work.

closing because this is in trunk now

mindrones changed the task status from Unknown Status to Unknown Status.Nov 4 2010, 7:11 PM