On Fri, Feb 24, 2017 at 3:19 PM Justin Israel <[email protected]> wrote:
> On Sat, Feb 25, 2017 at 12:13 PM Paul Molodowitch <[email protected]> > wrote: > > The net result is that it's possible for python to destroy the > MScriptUtil, and it's associated C++ objects... but still have a ptr object > created by that MScriptUtil, which tries to use that now-freed space. > > > In all fairness though, the documentation does say the pointers are only > valid for the lifetime of the MScriptUtil instance :-) > They do now, true. They didn't always <http://download.autodesk.com/us/maya/2008help/wwhelp/wwhimpl/js/html/wwhelp.htm>... at one point they did an overhaul of the MScriptUtil docs that made things MUCH clearer. (Though the underlying design is still awkward. Don't even get me started on the whole "initial values" vs "working values" thing - had to figure out that bit of oddball logic before there was any documentation on it's behavior!) The better change was when it was removed entirely in the python 2.0 api. Kudos to Autodesk for realizing it was a problem, and trying to fix it, both with the doc update, and the 2.0 overhaul. Speaking of 2.0 - does anyone know if it's feature complete? I thought it was dead, but then they added a bunch more classes an update or two ago, so maybe there's still hope of it getting there. Would be nice to never have to use the python 1.0 api... - Paul -- 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/CAAssL7YZt_favzhLKw2mDqgZKf6TckNrM7xnc1D2Di2nnXXoeQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
