Hi there.
When renaming e.g. Integer Pins one can use the magic '$Enum' to create dropdown controls.
It would be cool if there was a way to rename those pins remotely.
With a 'Set [xyz] Pin' Node I can only change the Value of the pin, but not the names.
Might sound a bit strange, but we're working on a scenario where those names can change occasionally in more than one compound when new features are added to the flow.
I don't think that there's a dedicated tool for renaming pins, but maybe there's some magic script function to do so?
Thanks for any hint & all the best.
Eric.
PS: In the worst case one would have to parse the XML of the Compound in a Lua script, replacing the strings in e.g.
<ExposerInputPins>
<Pin Name="From Tunnel" Type="PinStringValue" SourceModule="AudioTest ►" SourcePin="FromTunnel" />
<Pin Name="$Enum,SubTunnel,Intro,Outro,Middle" Type="PinIntValue" SourceModule="Copy Integer" SourcePin="In" />
</ExposerInputPins>
Does the Lua version that ships with Axy have an XML parser embedded?
Or would we need to go for something like https://github.com/jonathanpoelen/lua-xmlparser in this case?
Cheers & all the best.
Eric.