Yes, it should work like that. Make sure the file name is AE{nodeName}.mel i.e. AExformOnCurveLocator.mel, as Maya will look for a filename matching that pattern the first time the node type is displayed in the AE. And also note it’ll only show when you actually look at the shape in the AE, not the transform. And also note that it’ll only look once, then if you change it or add one later you’ll need to restart Maya. There’s a command to make it re-discover templates, but I can’t recall what it was.
There's one more example here, though it's also an MPxNode.
- https://github.com/mottosso/Qt.py/issues/53#issuecomment-280085508
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/41600704-91c7-41ca-b6ba-47c55cfdfb14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.