Use randomly-generated 53-bit IDs to identify modules and cables in the patch.

I see this point on CHANGELOG, which is nice to identity the saved module on the patch. How do I get this ID with code?

I’d like to explore it myself with the json on .vcv patch file, but now it seems binary and im not able to decompress it.

thanks

EDIT: it seems we need 7-Zip-zstd for decompress .tar.zstd (which is the actual .vcv) - tip for everyone :slight_smile:

or you can rename “vcvx” and drag and drop on nysthiometer… :smiley:

(re-drop the folder to have back the vcv file)

1 Like

Ok, so it seems the json field is “id”:

not sure if there are some api. i’ll try usual way to extract json field for now. let me know if there are some “out of the box” helper.

thanks

Within your module code the Id is a member variable in the modules and cables. I can’t remember if there is a getter function for them, but you can easily find in if you look in the headers.

1 Like

There is a getId() method in the Module. Just an id member on the Cable.

1 Like

it works perfect! thanks