In the workflow I’m developing, I have a scene set up with a character made of four parts. These are imported as alambic files. I would like to write a script that would assign the shaders (already in the scene) to the objects so I don’t have to do it manually every time I update my scene (changing the path of the cache crashes Blender, I filed a report already. This is for a workaround).
In the python tooltips, I can see the commands being executed, like
when I create a cube. The problem is, I don’t get any commands when I assign a shader to an object. Or when I select an object, or many other commands. So how can I find how to do this? If I search for shader in the docs, I get about 1000 results. In Maya, you have to turn ON a thing called “echo all commands” to see them all. Maybe there’s something similar in Blender, something that will display every thing being done.
In 2.79b, there is a script under Help menu that creates a text containing all operators.
In right click menu, there is an item to open a link to online documentation of python API.
Do you mean “operator cheat sheet”? That’s only showing the python tool tips. As I mentioned, searching for “shader” in the docs gives me a very very long list of results. Searching for “shader assign” gives no results at all. So back to square one.
If you go in the scripting tab, you will find it in the bottom left.
I will check out the info you just sent me. But it would be very useful that the python tooltips (or operator call sheet) would give more feedback on what is happening.