[Feature Request] Rename Pins Remotely

 

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.


   EricWest

 
Profile Image
EricWest
  -  

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.


 
Profile Image
Eifert@Aximmetry
  -  

Hi Eric,

The Auto Pin Name module can do exactly that:

Note, that it only changes the Pin's name, when the Name pin value changes in the Auto Pin Name module.

And for importing XML-s. You can do it with the XML File module.
As you rightly said in the other thread, that has its own issues currently with the "key" word. But it is going to be fixed in the Aximmetry version and you will be able to turn off that behavior.

Warmest regards,