Skip to main content
20 events
when toggle format what by license comment
May 24, 2022 at 10:31 history edited Mentalist CC BY-SA 4.0
Detail added
Nov 14, 2020 at 8:35 comment added Mentalist Very helpful answer! If there is already a vertex color map that we want to keep, I figured out that we can modify the code as follows. 1. define a variable for the name: vcol_map = "Something" 2. Remove the conditional if not mesh.vertex_colors: and change the line below it to mesh.vertex_colors.new(name = vcol_map) (no indentation). 3. Define color_layer by the vcol_map variable instead of a name string: color_layer = mesh.vertex_colors.get(vcol_map) If the code is run a second time, the Something vertex color map gets renamed to Something.001 and a new Something is created.
Jun 10, 2020 at 12:57 history edited CommunityBot
Commonmark migration
May 13, 2020 at 9:31 history edited brockmann CC BY-SA 4.0
Blender 2.8x update (Alpha value)
Mar 30, 2016 at 9:58 history edited zeffii CC BY-SA 3.0
added 45 characters in body
Mar 30, 2016 at 9:44 history edited zeffii CC BY-SA 3.0
added 903 characters in body
Mar 29, 2016 at 21:19 comment added user1759333 Sorry for the late answer... my question is about the GUI, not using Python. Vertex paint is vertex-based, right ? The face selection trick is almost ok, is there some way doing it per vertex as you can in Python ? I would expect it in edit mode, in some panel... but can't find it
Feb 23, 2015 at 15:03 comment added zeffii best go for a new question, you will get some definitive answers - no doubt.
Feb 23, 2015 at 15:01 comment added zeffii i don't know what you mean by 'color under the normal'.. gist.github.com/anonymous/6a74de7ea17a66b67c2f ?
Feb 23, 2015 at 14:56 comment added iKlsR @zeffii The color under the normal or the color in the middle of a polygon. I've never used vertex paint programmatically before so not even sure the api allows this.
Feb 23, 2015 at 14:44 comment added zeffii @iKlsR gist.github.com/zeffii/90399b67820dbf64628b vertex.normal
Feb 23, 2015 at 14:35 comment added zeffii @iKlsR using vertex_normals then, might be worth asking a separate question.
Feb 23, 2015 at 12:39 comment added iKlsR How could I set the color to the value under the normal of a face or the approximate blended color if the vertices of that face are different?
Feb 1, 2014 at 16:21 comment added twerdster How would you change this script to set the vertex colors equal to the value of the vertices themselves? I.e. each vertex RGB = XYZ?
Jun 25, 2013 at 7:04 history edited zeffii CC BY-SA 3.0
deleted 5 characters in body
Jun 11, 2013 at 22:22 history edited ideasman42 CC BY-SA 3.0
edited to use more conventional names, calling the mesh an object was confusing too.
Jun 11, 2013 at 20:40 history edited zeffii CC BY-SA 3.0
added 105 characters in body
Jun 11, 2013 at 20:32 history edited zeffii CC BY-SA 3.0
added 119 characters in body
Jun 11, 2013 at 20:11 history edited zeffii CC BY-SA 3.0
added 130 characters in body
Jun 11, 2013 at 20:03 history answered zeffii CC BY-SA 3.0