Hi Steve,

Can I ask you a further question regarding this? I quickly implemented something that checked the domain like you mention (using getdomainname()) and it all works well but I was wondering where you implement this within the plugin structure? Of course don't go into any details that you feel jeopardises any security. I wrote a simple function to check an external licence file to compare the domain and called this from within validate() which itself gets called quite often it seems. I was wondering if there was a better place to check, somewhere that only gets called on node creation and then not again throughout the session?

Secondly, when I checked this out on my home machine, I couldn't return a domain name as it isn't part of a domain. I don't suppose you have a method for single machines? I could use the hostname should a domain name not be available, although in the 'real world' the vast majority will be part of a domain I guess.

Cheers,
Steve



Steve Booth wrote:

Mike,

How you do it depends on the OS platform you're using. Generally speaking, what I do is to get the domain name from the network stack (or just using the Win32 API under Windows), and compare it to a const string. Thus, if you're working within, say, Disney Animation, and the compositing domain is comp.disney.com, for example, just error() if the domain does not match this string.

Hope that helps.

Steve

*From:* [email protected] [mailto:[email protected]] *On Behalf Of *Mike Wong | artixels.gmail
*Sent:* Thursday, October 18, 2012 7:38 AM
*To:* Nuke plug-in development discussion
*Subject:* Re: [Nuke-dev] Plugin Licencing

If I recall correctly, this License API is no longer available according to a thread I checked a while ago.

Mike

On Thursday, October 18, 2012, Stephen Newbold wrote:

Is it possible to provide any more info on how a 3rd party can implement licensing within a plugin? I want to have a look at the very least locking the use of a plugin to a specific site, not really interested in floating licences or anything particularly complicated.

http://docs.thefoundry.co.uk/nuke/63/ndkreference/Plugins/structDD_1_1Image_1_1License.html

Can't really make much sense of this. How does the system ID work. 'This is a 32-bit value that is unique for each customer site'. I check '$this_system_id' here and get 0 as the result. I'm not even sure how this is meant to work!

Cheers,
Steve

--
Stephen Newbold
Compositing Lead - Film
MPC
127 Wardour Street
Soho, London, W1F 0NL
Main - + 44 (0) 20 7434 3100
www.moving-picture.com <http://www.moving-picture.com>

_______________________________________________
Nuke-dev mailing list
[email protected] <mailto:[email protected]>, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

------------------------------------------------------------------------

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


--
Stephen Newbold
Compositing Lead - Film
MPC
127 Wardour Street
Soho, London, W1F 0NL
Main - + 44 (0) 20 7434 3100
www.moving-picture.com

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

Reply via email to