Results 1 to 2 of 2
  1. #1

    How can I change spline vertex weights?

    How can I change the weight ("W:") value of a spline control point via Python?

    weightproblem.png

    Many thanks for any help!
    Last edited by chrissie; 13-Jan-18 at 18:11.



  2. #2
    Member
    Join Date
    Mar 2013
    Posts
    367
    Code:
    import bpy
    
    for p in bpy.data.objects["NurbsCurve"].data.splines[0].points:
         p.weight = 0



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •