flowpipe
flowpipe copied to clipboard
script to refactor inputs and outputs
In my project I often have the names of inputs and outputs mentioned three times:
- once in the constructor of a node class as
InputPlug("inputName", self)
- once in the wiring
node_a.outputs["outputName"] >> node_b.inputs["inputName"]
- and once in the override of the compute method:
def compute(self, inputName)
At some point I will probably write a script or maybe a pycharm integration so that changing the name in one place will replace all uses of that name as well.
Sounds like a good idea. Personally I'm using sublime, so I might look into porting your pycharm script/plugin to sublime then