nutti
  • Member for 6 years, 10 months
  • Last seen more than a month ago
How to share variable among more than 2 operation
Accepted answer
3 votes

I could solve this problem. Solution is shown below. Create user defined class which has properties you want. Register class to bpy.types.Scene.XXXXX when add-on is started Get data from bpy.context....

View answer
How to share variable among more than 2 operation
3 votes

Finally, I solved this problem using static variable. class SelectFace(bpy.types.Operator): bl_label = "Select Face" selected_faces = None def __init__(self): SelectFace....

View answer
How to add the properties dynamically by using bpy.types.CollectionProperty?
Accepted answer
1 votes

I found that elements of bpy.types.CollectionProperty must be added in invoke method instead of draw method. I will also post the simple code for developers who stuck at this problem. import bpy from ...

View answer
How to get lists of UV island from Python script?
1 votes

I solved this problem in reference to add-on UV Align\Distribute. import bpy import bmesh __face_to_verts = defaultdict(set) __vert_to_faces = defaultdict(set) obj = bpy.context.active_object bm =...

View answer