Search found 4 matches

by Jarmade
Mon Jan 28, 2013 7:50 pm
Forum: Interface & Tools
Topic: Limiting faces affected by solidify
Replies: 0
Views: 489

Limiting faces affected by solidify

Not sure if this is a bug or expected behaviour but I am using the solidify modifier with zero thickness and "Fill rim" checked off, so I can make the mesh appear "double sided" for a game. I set the faces that I want to be double sided into their own vertex group and then selected the vertex group ...
by Jarmade
Mon Nov 05, 2012 6:13 pm
Forum: Python
Topic: How to set mouse position?
Replies: 2
Views: 1380

Re: How to set mouse position?

Not sure if blender has a built in way to do this, but this example only works on windows: import bpy from ctypes import * # point structure definition class POINT(Structure): _fields_ = [("x", c_ulong), ("y", c_ulong)] # Gets cursor position (windows only) def getCursorPos(): pt = POINT() windll.us...
by Jarmade
Mon Nov 05, 2012 6:04 pm
Forum: Python
Topic: Finding the name of an object file I imported?
Replies: 3
Views: 2283

importers should clear previous user selection and select all newly imported objects, thus you should be able to access them via bpy.context.selected_objects thanks, this is what i ended up doing, although it seems messy bpy.ops.import_scene.obj(filepath=fullpath) imported = bpy.context.selected_ob...
by Jarmade
Sat Nov 03, 2012 10:36 pm
Forum: Python
Topic: Finding the name of an object file I imported?
Replies: 3
Views: 2283

Finding the name of an object file I imported?

I want to do some operations on the mesh after i have imported it, like renaming it, but i can't find a way to get the object name Here is how i imported the object: import bpy folder = "D:/cg/export" file = "test.obj" foo = bpy.ops.import_scene.obj(filepath=(folder + "/" + file)) print(foo) # foo =...