Nuke caches all the OFX plugin descriptions into a file the first time it sees 
a plugin binary. It does this to speed up load times, so the next time it 
starts up it just reads the XML plugin description cache rather than reloading 
the binary.

So what is probably happening is that the first time Nuke tried to run your 
plugin it loaded and it unlicensed, only saw the 'NotRegisteredPlugin' and 
never got a chance to see the "real ones" once it was licensed up, as the 
binary the plugin was sitting it has not changed, so it didn't rescan it.

b

On 16 Apr 2012, at 12:53, Víctor M. Feliz (MOTIVA) wrote:

> My plugin starts with something like:
> OfxPlugin *OfxGetPlugin(int nth)
> {
>   if (licenseIsOK())
>   {
>      switch(nth)
>       {
>         case 0:
>             return &realcameraPlugin;
>             break;
>         case 1:
>             return &realdeepPlugin;
>             break;
>   }
>   else
>   {
>         return &NotRegisteredPlugin;
>   }
>   return 0;
> }
> 
> int OfxGetNumberOfPlugins(void)
> {      
>   if (licenseIsOK())
>     return 5;
>   else      
>     return 1;
> }
> 
> This works fine in others like eyeon but in Nuke the plugin seems to be not 
> re-scaned and I need to reinstall the plugin after adding my license file or 
> only one plugin appears.
> 
> Any idea about this? Thanks in advance!
> _______________________________________________
> Nuke-dev mailing list
> Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

--
Bruno Nicoletti, 
Founder and Head Of Technology

The Foundry
6th Floor, The Communications Building,
48 Leicester Square, London, WC2H 7LT, UK
Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 
Skype: brunonicoletti
Web: www.thefoundry.co.uk

The Foundry Visionmongers Ltd • Registered in England and Wales No: 4642027

_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to