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).
0
votes
Accepted
How can I know scripts of what I am editing on mesh?
To know the script of what you're doing in the scene, you can see the Info Area in the Scripting Workspace. …
0
votes
0
answers
66
views
Failed adding custom icon for add-on button [duplicate]
How I add custom icon for add-on button? I have ready a 32x32 size photo for my icon but dob't know how to add it
I have copy the code of: How to implement custom icons for my script/addon?
But when I …
2
votes
Accepted
How to make a report bug button in add-on?
The Report a Bug button will be added automatically if you add the tracker_url key to the bl_info dict of your add-on. See the following example:
bl_info = {
"name": "3D Simple X",
"author": " …
-1
votes
Accepted
How to make a button to add mesh that has been edited?
To make a button that adds a mesh you have edited, you need to make an operator.
You need to type def main(context): and type what you edit on the mesh.
Operator script:
class OperatorName(bpy.types.O …
0
votes
How to let people see message in add-on preference?
Type your text in add-on preference script:
bl_info = {
"name": "Example add-on",
"author": "Your name here",
"version": (1, 0),
"blender": (2, 92, 0),
"location": "Your location h …
-1
votes
Input script of Mix Shader node for create link?
I finally figure it out
I need to type
material_realistic_gold.node_tree.links.new(MixShader_node.inputs[1], BsdfGlossy3_node.outputs[0])
0
votes
2
answers
2k
views
How can I turn nodes that made in shader editor to script? [duplicate]
I want to make a button and when I press it, it will apply the material I made, that mean the nodes.
I try different way to type script but it wasn't work.
bpy.ops.node.add_node(type="ShaderNodeTexNoi …
0
votes
1
answer
214
views
What is the script of Glossy BSDF roughness value?
This is the script I am working on
BsdfGlossy_node = material_gold.node_tree.nodes.new('ShaderNodeBsdfGlossy')
BsdfGlossy_node.location = (0,-100)
BsdfGlossy_node.outputs[0].default_va …
0
votes
1
answer
269
views
Input script of Mix Shader node for create link? [duplicate]
I am scripting an add-on and I need to create link between Glossy BSDF node and Mix shader node's "shader"
material_realistic_gold.node_tree.links.new(BsdfGlossy3_node.outputs[0], MixShader_node.outputs.inputs …
2
votes
1
answer
5k
views
Class already registered as subclass?
I'm trying to create an addon. I'm able to run the script from the text editor but when I to try install it via User Preferences, I get the following error:
bpy.utils.register_class(SmoothMonkey)
Va …
0
votes
0
answers
132
views
How can I Apply material nodes when click image on Enum with Python?
I want my shader nodes to apply to an object when I click the image inside Enum
I am using the Enum template
# This sample script demonstrates a dynamic EnumProperty with custom icons.
# The EnumProp …