All Questions
35
questions
2
votes
1
answer
262
views
Python to Replace Skechup Material to Cycles Material
I'm using the Blender to make all my works university (architecture), but in my job the people use Sketchup for modeling and V-Ray for rendering.
I want use Blender, cause liked more then others, the ...
-1
votes
1
answer
483
views
How to convert a cycles material node setup to a python material generation script?
Is there a way to convert a cycles material node setup to a python script which in it's turn can generate a new material with the same node setup?
Also, is it possible to somehow retain the x,y ...
2
votes
2
answers
2k
views
Getting the image of a texture node that feeds into a node group
I have a Cycles material node group like this:
I can access the user-specified color (red) like this:
...
2
votes
2
answers
1k
views
cycles adding texture to face via python / import script
I am writing an importer for a custom file format. So far I have created my object:
...
5
votes
1
answer
787
views
Graph bar with elevation/height values
How can I get a graph legend that automatically gets my maximum and minimum elevation from an object?
Basically, I have an object that dinamically paints other with waves. I have a node setup that ...
2
votes
2
answers
397
views
Same Video on each face, but with different time delay?
iam looking for a way to - like the title says - i want to put the same video on each face, but with different time delay.
In other words, i want to create a kind of videowall.
i found THIS:
...
2
votes
0
answers
327
views
Custom Python Nodes: Calling Group Node
I am writing a custom shader node that essentially "Calls" a predefined group node into the code.
Here is the group node I am looking to call:
I am using the "CustomNode" template that is packaged ...
1
vote
1
answer
2k
views
How to change a material with python in blender?
I have a basic panel script with 3 buttons made with an enum. Those buttons are meant to change two materials of an object e.g. the 'silver' button would change the materials to the silver materials ...
3
votes
3
answers
1k
views
Any way of serializing Blender cycles materials data?
I am searching of ways to serialize Blender Cycles materials to files using Python. But as of now I've found no such ways.
Maybe by writing the data of the materials to files but how can I do that? ...
5
votes
2
answers
283
views
Accessing image texture uv channel connected to Cycles material Image Texture
Trying to figure out how to read the uv channel used by an Image Texture input from Python. So, in effect, how to access the "Vector", then grab the attribute name:
3
votes
1
answer
272
views
Setting all default_values of nodes to 0 does not result in expected black output
What I am trying to accomplish?
I am iterating over all nodes of one named material from the output node and going backwards and want to set all inputs.default_value to 0.
I use the Code from ...
4
votes
0
answers
749
views
Copy node tree from one material to another in cycles using python
I have two cycles materials (say source and target). I want to copy the Shader Nodetree from the source material to the target material after clearing any currently present node tree(s) in the target ...
3
votes
0
answers
389
views
Example of creating and setting a Cycles material node with the Python API [duplicate]
I'm trying to set the properties of a Cycles material, which is linked to a Plane object, using the API.
So far this is what I'...
7
votes
1
answer
4k
views
How to set a background using the cycles render engine with the API
I'm just getting started with the Blender API, and I'm trying to set the background texture using the API.
In the GUI, I do the following:
Choose the Cycles render engine ...
2
votes
1
answer
403
views
Extracting a text string info (character's indices) to use it as a material mask
I think an image can say more than words sometimes... :)
The idea is to use a different color from the color ramp for each character in the string.
It's related to this question