Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Python is an interactive, object-oriented programming language. In Blender, it is used as a general-purpose scripting language and to create add-ons to extend Blender's functionality.
-3
votes
Is it possible to print to the Report window in the Info view?
This should be the code: to get popup in mouse event use ERROR instead INFO.
see report
-'INFO' is lower and 'ERROR_OUT_OF_MEMORY' is highest level of error type.
def yourfunction(context):
wha …
4
votes
How to get the addons path using python?
Blender addon utils module can fetch the path of any given addon name if installed.
#iterate through all the addon name installed
#if The Addon Name exists then:
#.__file__ will give away the file pa …
0
votes
Access Add-on preferences property in a multi-file add-on
After observing how __init__.py packages everything together this simple trick worked. Please do let me know if some other correction is needed.
My folder structure:
my_addon/__init__.py
my_addon/some …
4
votes
bpy/file browser: get selected file names
A simplified full code sample for better understanding:
import bpy
import os
from bpy_extras.io_utils import ImportHelper
from bpy.types import Operator
from bpy.props import CollectionProperty
clas …
1
vote
How do I set the read-only 'frame_duration' property of an image sequence with Python?
If the image editor is used in one of the visible areas of the current workspace, it can be iterated through bpy.context.screen.areas to find the one with type IMAGE_EDITOR. The image that is shown in …
2
votes
Set active bone in pose mode from Python script
i want to add a little snippet for clarity. Thanks to batFinger for the detail. It was quite tough to find out.
import bpy
#The desired Bone
boneToSelect = bpy.data.objects['Rigify'].pose.bones['spin …
2
votes
How to automatically get a Add-on folder's path regardless of OS?
Blender addon utils module can fetch the path of any given addon name if installed.
#iterate through all the addon name installed
#if The Addon Name exists then:
#.__file__ will give away the file pa …