Author SHA1 Message Date
FunnyFinger b1700592b7 Merge pull request #2 from ComfyNodePRs/publish
Add Github Action for Publishing to Comfy Registry
2025-04-22 13:00:30 +03:00
FunnyFinger cea9797bcc Update pyproject.toml 2025-04-22 12:13:01 +03:00
FunnyFinger 1ae1f512d9 Create publish_action.yml 2025-04-22 12:02:49 +03:00
FunnyFinger 3be5fc7b48 Add files via upload 2025-04-22 11:59:34 +03:00
FunnyFinger ff2d86289a Update README.md 2025-04-20 12:03:49 +03:00
FunnyFinger 14cc3c41ae Update README.md 2025-04-20 11:53:39 +03:00
FunnyFinger ab2e2b110c Update README.md 2025-04-20 11:21:50 +03:00
FunnyFinger 66186634cc Merge pull request #3 from FunnyFinger/FunnyFinger-patch-1
example_workflow
2025-04-19 23:18:28 +03:00
snomiao 5ffeb11bd1 chore(publish): Add Github Action for Publishing to Comfy Registry 2025-04-14 17:58:59 +00:00
4 changed files with 127 additions and 8 deletions
+28
View File
@@ -0,0 +1,28 @@
name: Publish to Comfy registry
on:
workflow_dispatch:
push:
branches:
- main
- master
paths:
- "pyproject.toml"
permissions:
issues: write
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'FunnyFinger' }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
submodules: true
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@v1
with:
## Add your own personal access token to your Github Repository secrets and reference it here.
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
+20
View File
@@ -0,0 +1,20 @@
name: Publish to Comfy registry
on:
workflow_dispatch: # Allows manual triggering from the Actions tab
push:
branches:
- main # Change this if your main branch is named differently (e.g., master)
paths:
- "pyproject.toml" # Trigger only when pyproject.toml changes
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@main
with:
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} # Uses the secret you created
+64 -8
View File
@@ -16,6 +16,15 @@ A custom node pack for **ComfyUI** providing a stack of named sliders with dynam
---
## Workflow
- An Example workflow is attached with the following image, just drag and drop this image in ComfyUI Canvas:
<div align="center">
<img src="example_workflow.png" alt="Slider Stacker and Slider Receiver" />
</div>
---
## 🎥 Demo
### Contextual Features
@@ -75,12 +84,12 @@ A custom node pack for **ComfyUI** providing a stack of named sliders with dynam
### Slider Stacker
- **Inputs**:
- `slider_max_strength` (FLOAT): The master maximum value. Adjusting this scales all sliders below it.
- `sliders_max` (FLOAT): The master maximum value. Adjusting this scales all sliders below it.
- `slider_count` (INT): Controls how many slider rows are visible and processed (1–50).
- `slider_name_{i}` (STRING): A text field to name or describe the slider (optional).
- `({i})` (FLOAT Widget): The individual weight for this slider (0.0–2.0). Adjusting this updates the `slider_max_strength` if this slider becomes the new maximum.
- **Sum Lock Toggle**: A toggle to lock the total sum of all slider values. When enabled, adjusting one slider redistributes the difference proportionally across the other sliders.
- **Sliders Sum Widget**: Displays the total sum of all slider values in real-time.
- `({i})` (FLOAT Widget): The individual weight for this slider (0.0–2.0). Adjusting this updates the `sliders_max` if this slider becomes the new maximum.
- `sliders_sum` (FLOAT): Adjust this to change the total sum of all sliders *while preserving their relative differences* (when Sum Lock is off). Also displays the current sum.
- **Sum Lock Toggle**: A toggle to lock the total sum of all slider values. When enabled, adjusting one slider redistributes the difference proportionally across the other sliders to maintain the locked sum. When enabled, the `sliders_sum` field becomes read-only.
- **Output**:
- `SLIDER_WEIGHTS` (STRING): A comma-separated string of the weight values for sliders 1 through `slider_count`, formatted to two decimal places (e.g., "1.00, 0.50, 0.75").
@@ -104,14 +113,61 @@ A custom node pack for **ComfyUI** providing a stack of named sliders with dynam
---
## 🛠️ Installation
## 📦 Installation Methods
1. Ensure the folder containing these files is named `Dynamic_sliders_stack`.
2. Place the `Dynamic_sliders_stack` folder inside your ComfyUI `custom_nodes` directory.
3. Restart ComfyUI.
Choose any method that suits your setup:
### ✅ Method 1: Via ComfyUI Manager (Recommended)
1. Open ComfyUI.
2. Click on the **Manager** tab (top bar).
3. Go to **Install Custom Nodes**.
4. Paste this URL into the install field:
```
https://github.com/FunnyFinger/Dynamic_Sliders_stack.git
```
5. Click **Install**.
6. Restart ComfyUI.
---
### 🧰 Method 2: Manual Git Clone
```bash
cd YOUR_COMFYUI_PATH/custom_nodes
git clone https://github.com/FunnyFinger/Dynamic_Sliders_stack.git
```
Then restart ComfyUI.
---
### 📁 Method 3: Manual ZIP Download
1. Go to the GitHub repo: [Dynamic Sliders Stack](https://github.com/FunnyFinger/Dynamic_Sliders_stack).
2. Click the green **Code** button → **Download ZIP**.
3. Extract the ZIP file.
4. Move the extracted folder into your ComfyUI `custom_nodes/` directory.
5. Restart ComfyUI.
---
## 🚀 Usage Instructions
1. **Add the Nodes:** Double-click on the ComfyUI canvas or right-click -> "Add Node". Search for "Slider Stacker" or "Slider Receiver". You can also find them under the "Dynamic Sliders Stack" category.
2. Add the **Sliders Stacker** node to your graph.
3. Set the `slider_count` field (e.g., 5 sliders).
4. Adjust the maximum value for the highest value slider via `sliders_max` and all sliders will adjust proportionally.
5. Adjust the target total sum value for all sliders via `sliders_sum` and all sliders will adjust accordingly while maintaining their offsets (only effective when Sum Lock is off).
6. Optionally set individual titles for each slider.
7. Adjust the sliders as needed in many modes: individually, proportionally (via `sliders_max`), offset (via `sliders_sum` with lock off), sliders_sum with sum-lock mode, individually with sum-lock mode.
8. Connect the `SLIDER_WEIGHTS` output port to the **Sliders Receiver** node (add this node the same way as the Stacker) and set the index to the required slider number.
9. Combine this custom node with other custom nodes like prompt composer to give controllable weight for parts of your prompt.
10. Right-click the **Slider Stacker** node for utilities such as Average All, Reset All, Max All and Min All.
---
## 🎯 Contributing
We welcome contributions! If you have suggestions for improvements or new features, please [open an issue](https://github.com/FunnyFinger/Dynamic_Sliders_stack/issues) or [submit a pull request](https://github.com/FunnyFinger/Dynamic_Sliders_stack/pulls).
+15
View File
@@ -0,0 +1,15 @@
# pyproject.toml
[project]
name = "Dynamic_Sliders_stack"
description = "A custom node for ComfyUI to have many sliders with interactive dynamic behavior."
version = "2.0.0"
license = "LICENSE"
dependencies = []
[project.urls]
Repository = "https://github.com/FunnyFinger/Dynamic_Sliders_stack"
[tool.comfy]
PublisherId = "funnyfinger"
DisplayName = "Dynamic Sliders Stack"
# Icon = ""