|
|
Script node is one of the ways you can use Python to interact with the nodetree.
|
|
|
Script node is one of the ways you can use Python to interact with the nodetree. If you are comfortable with Python, this will let you quickly make your own nodes, and iterate through code changes fast. (it has a "hot reload")
|
|
|
|
|
|
If you are comfortable with Python, this will let you quickly make your own nodes.
|
|
|
- Either by generating or modifying existing geometry.
|
|
|
- use Blender Python API (bpy) or any third party Python module.
|
|
|
- interact with other nodes or other parts of Blender, as a function of any imaginable input.
|
|
|
|
|
|
The documentation can be found [here](), but it's a bit clinical and will make more sense if you've explored some of the examples beforehand.
|
|
|
|
|
|
### Sine Petal.
|
|
|
|
|
|
sine petal was the first ever script written in ScriptNodeLite and I think it shows how to setup a node.
|
|
|
|
|
|
```python
|
|
|
```
|
|
|
|
|
|
and here's a `numpy` version of the same script, to show that there's a reason to learn `numpy` if you want to write fast and succinct code.
|
|
|
|
|
|
```python
|
|
|
``` |
|
|
\ Нет новой строки в конце файла |