# setUniqueID?

**URL:** <https://forum.juce.com/t/setuniqueid/6445>\
**Category:** Audio Plugins\
**Created:** [February 19, 2011, 1:30pm UTC](https://forum.juce.com/t/setuniqueid/6445 "2011-02-19T13:30:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [February 19, 2011, 1:30pm UTC](https://forum.juce.com/t/setuniqueid/6445/1 "2011-02-19T13:30:27Z")

</div>

Using the VST sdk one can call setUniqueID() in the (AudioEffectX) plugin constructor. It seems that with Juce one MUST define this unique ID in the JucePluginCharacteristics.h file. In a non-juce VST project it’s possible to have the plugin read a text file in its constructor and retrieve and set a unique ID. Is there any way I can do this within the current Juce framework? I couldn’t find the equivalent of setUniqueID in the docs.

---

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [February 25, 2011, 3:49pm UTC](https://forum.juce.com/t/setuniqueid/6445/2 "2011-02-25T15:49:39Z")

</div>

So I guess there is no way to do this within the current Juce framework, without hacking the VST wrapper of course, which is what I had to do.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [February 25, 2011, 3:53pm UTC](https://forum.juce.com/t/setuniqueid/6445/3 "2011-02-25T15:53:22Z")

</div>

Well it’s not something that I could implement in a way that also makes sense for AUs, RTAS, etc. It’s completely VST-specific.

---

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [February 25, 2011, 8:29pm UTC](https://forum.juce.com/t/setuniqueid/6445/4 "2011-02-25T20:29:34Z")

</div>

The reason I’m asking if that I have a dummy plugin that reads a text file for information on how to function, different text files cause to plugin to look and behave differently. I create new plugins by writing a new text file and cloning my ‘dummy’ plugin library. Up until I started loading my plugins in Sibelius I hadn’t noticed the problem of not setting a unique ID for each plugin. So now I give the user the option of specifying the ID in their text file. This works so far on VST. Are you suggesting that I won’t be able to use a similar trick for AU? Thanks for the reply.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [February 26, 2011, 11:56am UTC](https://forum.juce.com/t/setuniqueid/6445/5 "2011-02-26T11:56:23Z")

</div>

Yeah, IDs are completely different in AUs and RTAS. Sounds like you’ll need to do quite a few platform-specific hacks to get that going.

---

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [February 26, 2011, 12:38pm UTC](https://forum.juce.com/t/setuniqueid/6445/6 "2011-02-26T12:38:31Z")

</div>

Thanks for the heads up.
