Hey, Weirdly the following commands which take MObject don't work neither
maya.OpenMaya.MFileIO.loadReferenceByNode(node) // Error: line 1: Please specify a reference node or referenced file to unload. // maya.OpenMaya.MFileIO.unloadReferenceByNode(node) // Error: line 1: Please specify a reference node or referenced file to unload. // --- [image: Nicolas Chaverou - Golaem Crowd Product Manager - Golaem SA] +33 (0)2 99 27 21 44 http://www.golaem.com On Fri, Feb 16, 2018 at 3:33 PM, Nicolas Chaverou < [email protected]> wrote: > Hey Marcus, > > Which error is that ? > In my first email, I pasted the wrong error line. > > The one I'm actually getting is > // Error: (kInvalidParameter): Invalid parameter > > Regarding the scene : create a sphere poly, save it > Reference that scene using the Create Reference... menu in Maya > Run the code (change the namespace if required) > > > --- > [image: Nicolas Chaverou - Golaem Crowd Product Manager - Golaem SA] > > +33 (0)2 99 27 21 44 <+33%202%2099%2027%2021%2044> > http://www.golaem.com > > On Fri, Feb 16, 2018 at 11:12 AM, Marcus Ottosson <[email protected]> > wrote: > >> I get that error when, unsurprisingly, the object does not exist. >> >> Do you have a reproducible, including the creation of that sphere? >> >> -- >> 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/ms >> gid/python_inside_maya/CAFRtmODbrf-HassH7Rxh%2BQs7%3D421Oh4C >> 18%3DouNgDmgbtwyCMzQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODbrf-HassH7Rxh%2BQs7%3D421Oh4C18%3DouNgDmgbtwyCMzQ%40mail.gmail.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/CAFS5DCZ%2Bg%3D925hKTfFZ5doV%2Bgj7ndCsSan%2BVvOaD2XKLVXc_EQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
