In maya 2016 it gives me this # Result: u'2015' #
?? On Tuesday, July 12, 2016 at 10:11:17 AM UTC+4:30, Justin Israel wrote: Does the cutstring give you anything consistent? > > cmds.about(c=True)[:4] > > On my machine, the year is the first 4 characters. > > > > On Mon, Jul 11, 2016 at 3:43 PM likage <[email protected] <javascript:>> > wrote: > >> I was wondering what is the best way that I can grab the year of the Maya >> version and just the year that I am using - eg. 2012, 2014 etc? >> >> I know that there is a command - cmds.about(v=True) which returns me >> 'Extension for Autodesk Maya 2014 Service Pack 2' but any ideas in which I >> can improve on it? >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/7c3cafbc-6b19-47b0-b864-9d541bc3e7c6%40googlegroups.com >> >> <https://groups.google.com/d/msgid/python_inside_maya/7c3cafbc-6b19-47b0-b864-9d541bc3e7c6%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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/7f1e08ec-7087-430d-9e43-b7f036119826%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
