Updated readme
This commit is contained in:
@@ -79,41 +79,6 @@ Output
|
||||
|
||||
Two simple nodes to convert strings to integers and vice versa.
|
||||
|
||||
### Python Text Script
|
||||
|
||||
A node that takes a number of inputs as well as a Python script that
|
||||
takes the given arguments to produce a result. Intended as a brute-
|
||||
force method in cases where a general purpose formatter might not
|
||||
cut it and no dedicated node is available. The value assigned to
|
||||
the `result` variable inside the script will be returned by the
|
||||
node.
|
||||
|
||||
**Example**
|
||||
|
||||
Return a description based on a numeric input.
|
||||
|
||||
Script
|
||||
```python
|
||||
age = int(arg0)
|
||||
|
||||
if age < 13:
|
||||
result = "a nice child"
|
||||
elif age < 22:
|
||||
result = "an angsty teenager"
|
||||
else:
|
||||
result = "a mature adult"
|
||||
```
|
||||
|
||||
Input
|
||||
```text
|
||||
arg0: 17
|
||||
```
|
||||
|
||||
Onput
|
||||
```text
|
||||
"an angsty teenager"
|
||||
```
|
||||
|
||||
|
||||
[1]: https://docs.python.org/3/tutorial/inputoutput.html
|
||||
[2]: https://github.com/exectails/comfyui-et_dynamicprompts
|
||||
|
||||
Reference in New Issue
Block a user