That env variable is now deprecated.

You should use env['nc'] instead, we'll update the docs.

In your init.py or similar, you can do something like:

# caveat I've not tested this;
if env.get('nc', False) :
  nuke.alert( "<studio> does not support PLE" )
  sys.exit(1)

F.





On 20 May 2015 at 18:37, Nico Dufort <[email protected]> wrote:

> nuke.env['ple'] (will return True or False)
>
> On Wed, May 20, 2015 at 10:03 AM, Jean-Paul LeDoux <
> [email protected]> wrote:
>
>> Hello,
>>
>> We're looking to build in a check to make sure a user can't save or
>> increment a scene if they're using a PLE license (sigh).
>>
>> Does anyone know how to get this information with a python call?
>>
>> Thank you,
>>
>> JP
>>
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>>
>
>
> --
> "Attention, attention. Here and now, boys," the mynah repeated. "Here and
> now, boys."
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>


-- 
Frank Harrison
Senior Nuke Software Engineer
The Foundry
Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906
Web: www.thefoundry.co.uk
Email: [email protected]
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to