1
$\begingroup$

I'm writing a script to make UV lighting maps for unreal... I got my script to spit out all the bmesh edge indexes but I can't figure out the best way to mark these as seams. (this is my first time using bmesh and I'm still having trouble understanding exactly how to use it)

$\endgroup$
1
$\begingroup$

BMesh edges have a seam property.

You can:

import bpy
import bmesh

mesh = bpy.context.object.data

bm = bmesh.new()
bm.from_mesh(mesh)

bm.edges.ensure_lookup_table()

bm.edges[0].seam = True

bm.to_mesh(mesh)
| improve this answer | |
$\endgroup$
  • $\begingroup$ Amazing! thank you $\endgroup$ – TYLRwithspaces Mar 22 at 18:03
  • $\begingroup$ ^^ I was using an earlier reference that suggested the field use_seam, which I guess got changed??? Thanks for the help $\endgroup$ – Jack Lynch May 25 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.