


#Free jpg converter to obj code#
It will always be more straightforward for you to impliment what you are trying to do in the Blender environment first, then migrate your code for use as a script with the bpy module. I would recommend trying the script you modified to produce the above result in Blender's built in interpriter, and heading over to the Blender Stack Exchange to speak with others who are doing something similar. obj file.Īt the very least you are getting an image, maybe it's not the one you want, but it's something. You may have to delete that prior to importing your. It looks like the image you show in your comment is one of the "Default Cubes" that come in a new Blender scene. Please provide me with your expected output, what you think you should be getting. Please let me know if you have nay further issues. See the following sources, used for the example: Imported_object.rotation_euler = CERTAIN_ROTATIONīpy. = RENDER_LOCATIONīpy.( write_still=True ) # Get the imported object from the context
#Free jpg converter to obj full#
obj file, using the full path to the file.īpy.ops.import_scene.obj(filepath=FILE_LOCATION) RENDER_LOCATION = os.path.join(APP_er_data_dir, "filename.jpg") # Please replace with what is relevant to your use caseĪPP_STORAGE = AppDirs(APP_NAME, APP_AUTHOR)įILE_LOCATION = os.path.join(APP_er_data_dir, "filename.obj")
