Thanks for the advice Steve, I'll look into when I get a chance...
people keep asking me to do shots for some reason! ;)
Steve Booth wrote:
Steve (great name, btw.. J )
Do it in the constructor of the Op. That guarantees it will be done
before any processing whatsoever.
Single machines aren't members of a domain, per-se, but they are
always members of a /Workgroup/.
Steve
*From:* [email protected]
[mailto:[email protected]] *On Behalf Of
*Stephen Newbold
*Sent:* Monday, December 03, 2012 8:10 AM
*To:* Nuke plug-in development discussion
*Subject:* Re: [Nuke-dev] Plugin Licencing
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,
--
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