HISE icon indicating copy to clipboard operation
HISE copied to clipboard

[UX/ScriptNode] Chain node -> Wrap into DSP network: filename should be the trimmed Name string, not the chain node id

Open aaronventure opened this issue 1 year ago • 4 comments

This was probably missed when the name property was introduced.

When wrapping a chain into a DSP network, the id of the chain node (now unchangeable) gets picked up as the filename. Now your network is named chain8.xml, and you gotta go rename the file, and change up all the IDs in the file (in 3 places, otherwise the red screen of death pops up on network load).

aaronventure avatar Nov 20 '24 04:11 aaronventure

hmm, that would involve writing the name property back to the ID string, handling all errors with whitespace and other invalid IDs alongside the horrors of making sure that changing the ID does not fuck up all cable connections that we are so happy to have put behind us with the Name property.

BTW in which workflow do you use that function? I've not used it in a few years now and maybe I've added new features that makes the entire process obsolete.

christoph-hart avatar Nov 20 '24 14:11 christoph-hart

I create mini-networks inside of a network, realize I will have to use it in 5 other places, then decide to put it into a separate network.

I mean what I describe in the post can be done with a post-batch script: store the name of the network, remove and invalid filenaming characters and trim whitespace, change the network filename, change network ID on line 3, change node ID on line 4. Because that's what I do now manually.

aaronventure avatar Nov 20 '24 15:11 aaronventure

have you checked the new ability of creating your own templates?

image

Use Export as template, then reload the network and it will appear in the templates list. This has the advantage that they create local copies so if you want to make local changes to a certain instance it won't affect the others.

christoph-hart avatar Nov 20 '24 15:11 christoph-hart

I haven't. Good stuff, works great. I have some cases where I want the changes propagated but this will make sharing networks between projects a lot easier. It even uses the name property to create the file (so obviously it works here).

However, there's a big UX issue with it: it will replace an existing template of the same name without prompting. This can be nasty.

aaronventure avatar Nov 20 '24 15:11 aaronventure