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 |
Questions concerning scripting in Blender using the Python programming language. Also use this tag for questions about scripting in OSL (Open Shading Language).
5
votes
1
answer
427
views
How can I update a menu via an operator?
I've created a menu using an Enum Property.
Now I looking for a way to update the menu every time I call an specific operator: Load_New_List_Operator.
import bpy
from bpy.props import (EnumProp …
2
votes
2
answers
4k
views
How can I uncomment "#" a line using python? [closed]
I looking for this
#My line <=== is commented
after running my python script
My line <=== is uncommented
IS there any way to get an executable code by reading a commented line?
-4
votes
1
answer
5k
views
How to sort a list with alpha-numeric items? [closed]
How could I sort a list with alpha-numeric items, in order ascending?
For example, the list [ 'm 2.25', 'm 6.30', 'm 5', 'm 1'] should become ['m 1','m 2.25', 'm 5', 'm 6.30'], when sorted.
1
vote
1
answer
259
views
How to refresh F-Curve colors via python?
To refresh colors F-Curves I have to display the Graph editor on the screen.
Blender doesn't refresh colors F-Curves automatically.
Create some animation with the default cube and follow:
bpy.data. …
1
vote
0
answers
67
views
How to redefine an Float Property after create it? [duplicate]
I've created a slider like so:
bpy.types.Scene.slider_value = bpy.props.FloatProperty(
default= 0,
min = -100,
max = 100,
)
In some case I need to go out over the previous min an …
3
votes
1
answer
2k
views
How do I know if I have a selected keyframe using python?
I'm looking for something similar to this, or other:
len(bpy.context.selected_objects)
2
votes
How do I find the setting affected by a f-curve using python?
The answer was pretty simple. Just add this at the end of line:
.data_path
bpy.data.actions['Material.001Action'].fcurves[0].data_path
1
vote
1
answer
49
views
How do I find the setting affected by a f-curve using python?
Knowing my f-curve, how can I find the animated setting?
bpy.data.actions['Material.001Action'].fcurves[0]