Skip to main content

Weight Schedule Convert

KJNodes/weights
WeightScheduleConvert

Converts different value lists/series to another type.

Example

JSON Example
{
  "class_type": "WeightScheduleConvert",
  "inputs": {
    "input_values": 0,
    "output_type": "list",
    "invert": false,
    "repeat": 1
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
input_valuesFLOATrequired-0
output_typeENUM
4 options
  • match_input
  • list
  • pandas series
  • tensor
required-"list"
invertBOOLEANrequired-false
repeatINTrequiredmin: 1, max: 255, step: 11
remap_to_framesINToptional-0
interpolation_curveFLOAToptional--
remap_valuesBOOLEANoptional-false
remap_minFLOAToptionalmin: -100000, max: 100000, step: 0.010
remap_maxFLOAToptionalmin: -100000, max: 100000, step: 0.011

Outputs

IndexNameTypeIs ListConnection Reference
0FLOATFLOATNo["{node_id}", 0]
1STRINGSTRINGNo["{node_id}", 1]
2INTINTNo["{node_id}", 2]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this WeightScheduleConvert node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • FLOAT (FLOAT): ["5", 0]
  • STRING (STRING): ["5", 1]
  • INT (INT): ["5", 2]
Was this page helpful?