Search found 894 matches

by CoDEmanX
Tue Nov 05, 2013 12:32 am
Forum: Interface & Tools
Topic: Soft Edge Hard Edge
Replies: 15
Views: 3631

Tooltip says about the split_angle property: Angle between faces' normals above which an edge is considered as sharp when computing loop normals So it's not an edge angle, but angle between two faces. Two adjacent flat quads would enclose an angle of 180° i guess. If two faces form a peak, it's less...
by CoDEmanX
Mon Nov 04, 2013 6:50 pm
Forum: Python
Topic: Operators functions wont call in c
Replies: 3
Views: 1248

calling an operator from within another operator in C doesn't sound like good practise. You may check the automatic saving feature (quit.blend) and see how that is called / executed. You might have to use some functions but not operators.
by CoDEmanX
Mon Nov 04, 2013 6:48 pm
Forum: Interface & Tools
Topic: Soft Edge Hard Edge
Replies: 15
Views: 3631

I forgot to say: you need to enable loop-normals in Properties sidebar (N), Item panel. Default value is fine. If you want hard edges for angles lower than 180° automatically, even if edges aren't marked sharp, decrease the value. In editmode, N-panel > Mesh Display has an option to show loop normal...
by CoDEmanX
Mon Nov 04, 2013 12:20 am
Forum: Interface & Tools
Topic: Soft Edge Hard Edge
Replies: 15
Views: 3631

you smooth faces (shade smooth), and make hard edges by marking them as "sharp". Note that you need VBO on to see mont's hard/soft edges stuff.
by CoDEmanX
Sun Nov 03, 2013 9:29 am
Forum: Interface & Tools
Topic: Soft Edge Hard Edge
Replies: 15
Views: 3631

by CoDEmanX
Sun Nov 03, 2013 12:37 am
Forum: Python
Topic: How to get to know how much vertices is inside vertexGroup?
Replies: 1
Views: 860

You can do that like: ob = bpy.context.object vgroup_verts = {vgroup.name: [] for vgroup in ob.vertex_groups} for v in ob.data.vertices: for g in v.groups: vgroup_verts[ob.vertex_groups[g.group].name].append(v.index) for vgroup in vgroup_verts: vcount = len(vgroup_verts[vgroup]) print("Vertex Group ...
by CoDEmanX
Fri Nov 01, 2013 6:20 pm
Forum: Python
Topic: Persistent Data
Replies: 1
Views: 1311

You could use the window manager for a custom property: bpy.types.WindowManager.session = bpy.props.StringProperty(options={'HIDDEN', 'SKIP_SAVE'}) bpy.context.window_manager.session = "abc123" SKIP_SAVE might not even be needed, but you better test that. If you access the session in your addon's co...
by CoDEmanX
Thu Oct 31, 2013 3:10 pm
Forum: Interface & Tools
Topic: Soft Edge Hard Edge
Replies: 15
Views: 3631

i hesistate to update my build, as it got several modifications applied, and some add features which don't fully work or even crash blender instantly. Need to check if i can strip off the unrelated stuff (something like git's stash for svn).

Would 64bit ms vc build be ok?
by CoDEmanX
Thu Oct 31, 2013 3:06 pm
Forum: Coding Blender
Topic: Dialog box creation
Replies: 5
Views: 4886

by CoDEmanX
Thu Oct 31, 2013 3:05 pm
Forum: Python
Topic: Operators functions wont call in c
Replies: 3
Views: 1248

blender saves to .blend if you close blender, check quit.blend
by CoDEmanX
Mon Oct 28, 2013 10:18 pm
Forum: Interface & Tools
Topic: Soft Edge Hard Edge
Replies: 15
Views: 3631

I built mont's branch on windows and it's pretty cool, although available for VBO on only. Waiting for normal edit tools now :)
by CoDEmanX
Sun Oct 27, 2013 9:11 pm
Forum: Interface & Tools
Topic: Soft Edge Hard Edge
Replies: 15
Views: 3631

Check out Mont's project:

http://mont29.wordpress.com/
by CoDEmanX
Sat Oct 26, 2013 4:07 pm
Forum: Coding Blender
Topic: Using blender as a custom editor for a game engine?
Replies: 3
Views: 4446

basically yes, you could even integrate your render engine into blender (if it's opengl based).
by CoDEmanX
Sat Oct 26, 2013 4:06 pm
Forum: Python
Topic: Is there any way to check if transform operator is finished?
Replies: 1
Views: 891

no, but you can wrap a transform op in a modal op and wait for LMB/RMB/Esc/Spacebar (it's a hack though), or define a Macro if you wanna get modal user input in your own operator.

http://blender.stackexchange.com/questi ... tep-script