hey
```python
from maya import cmds
cmds.license(showProductInfoDialog=True)
```
just this command works in maya 2016

On Mon, May 4, 2015 at 8:42 PM, Kenneth Ibrahim <[email protected]>
wrote:

> Simple question and hopefully 1 liner script answer :)
>
> How does one poll the serial number of the currently running Maya session?
>
> I tried the command 'license' but need to extract the serial number from
> the return unicode string given the 'info' option. That's fine though it
> seems that they would provide selectors for specific information.
>
> I can go with this but it seems that all of the options to this command
> have been deprecated in Maya 2016 so I'll need different approaches with
> different versions.
>
> Thx! Ken
>
> --
> "God is a metaphor for a mystery that absolutely transcends all human
> categories of thought. It's as simple as that!" - Joseph Campbell
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAP_aC5Z4rhUynyCxbtaP_uMtrtgpmGTpJMdyyLjS-FDt9k85iQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAP_aC5Z4rhUynyCxbtaP_uMtrtgpmGTpJMdyyLjS-FDt9k85iQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 


Bests,
madoodia

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CADvbQwJ%3DEMLLeq9A8xHTJYsdqXzbb1-shSOyMyRdzQgEAwNh9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to