Posts

Showing posts with the label Blender

Blender Fbx Import From Ascii Format

Answer : For some reason Blender import doesn't support FBX models that are serialized to text. As a workaround the model can be changed to binary FBX model and imported to Blender. At least I am able to use Autodesk FBX 2013.3 Converter even I don't have any other Autodesk software installed. Other option that might work is to use Bos FBX Importer. PS. If you want to export FBX models from Blender and be able to import them again, you can choose version: FBX 7.4 binary not FBX 6.1 ASCII in the export settings panel. If you have Visual Studio installed try to open the original file then save it and import in Blender. This should work. Unfortunately I can't comment yet but here's an update to maZZZu's answer: The Bos FBX Importer will also not open ASCII .fbx files, however Autodesk's FBX Converter still does. Here's the updated URL: https://www.autodesk.com/developer-network/platform-technologies/fbx-converter-archives

Blender 2.6: Select Object By Name Through Python

Answer : bpy.data.objects['OBJECT'].select = True Selection data is contained within the individual objects. You can read and write them as shown. In a slightly more readable form: object = bpy.data.objects['OBJECT'] object.select = True bpy.ops.object.select_name() has been replaced by bpy.ops.object.select_pattern() (around 2.62, I think?), which is a more powerful version (it can select an exact name, but also use patterns with wildcards, be case-insensitive, etc.): bpy.ops.object.select_pattern(pattern="Cube") import bpy def returnObjectByName (passedName= ""): r = None obs = bpy.data.objects for ob in obs: if ob.name == passedName: r = ob return r obs = bpy.data.objects bpy.ops.object.select_all(action='DESELECT') for ob in obs: print (ob.name) myObj = returnObjectByName(ob.name) if myObj != None: print (dir(myObj)) myObj.selected = True myObj.loc...