The Channel Box specifically looks for Shapes and Constraints so you'd have to look at something derived from MPxConstraint. I don't know of any flag that can override that behaviour.
On Thu, Dec 13, 2018 at 7:54 AM Marcus Ottosson <[email protected]> wrote: > Hi all, > > The various Maya constraints, like parentConstraint, is funny in that it > shows up as a transform child in the Outliner, but as a shape in the > channel box. > > That's really useful in that (a) they appear in the channelbox when > selecting the parent and (b) can be selected in the outliner and deleted > like any other transform node. > > I'd like to try and replicate that for some of my custom shape nodes > (inheriting MPxLocatorNode > <http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=__py_ref_class_open_maya_u_i_1_1_m_px_locator_node_html>). > Any idea of where to start looking for something like that? I'd imagine > it'd be a flag of sorts, but more likely it's out of reach for anything > coming out of the API. :( > > Best, > Marcus > > -- > 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/CAFRtmOC_jMCAYYfmN1iccu%3DtKOgPzVg8yZdza%2B0jck0g9G-MJg%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC_jMCAYYfmN1iccu%3DtKOgPzVg8yZdza%2B0jck0g9G-MJg%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/CALKD2WpBMPkAxvF2%3Ds58hCgLggU2jrMEq9cULCpJ5mJtYsiU-w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
