Rigging101 » Rigging128

Plugin error: (kInvalidParameter): Object is incompatible with this method (1 post)

About This Topic


No tags yet.

  1. tommix

    Posted 7 years ago

    I am writing a plugin for the calculus of the autorotation of a wheel based on differential calculus instead the classical way.
    I have created a custom locator named rollLocator.

    It works fine if I call the MEL command: createNode rollLocator

    But if I try to create the node via C++ using the MDGModifier class or the MDagModifier, in this way:

    MObject rollLocatorObj = dagMod.createNode("rollLocator", MObject::kNullObj, &status);


    MObject rollLocatorObj = dagMod.createNode(RollLocator::typeId, MObject::kNullObj, &status);

    I get the following runtime error:

    Plugin error: (kInvalidParameter): Object is incompatible with this method

    Any ideas how to solve the problem or reference this new locator alternatively in C++?

    Thank you


You must log in to post.

Rigging101 » Rigging128
1,099 posts in 307 topics over 113 months by 188 of 8,226 members. Latest: fashionpvp, d2q4p5z2j, gasheldonl