How to create simple settings in plugin?

Answered

Comments

2 comments

  • Avatar
    Andrey Terentyev

    Hello Mohamed,

    Is there any documentation for how to create settings in plugin?

    See these files of the Metadata SDK

    metadata_sdk/src/nx/sdk/analytics/manifests.md
    metadata_sdk/src/nx/sdk/settings_model.md

    I am able create plugin. But, NX client is not displying the text box field which I expected.

    Most probably, your manifest JSON is not correctly formatted.
    You have totally wrong structure of the Engine manifest. That's the root cause.
    In your case, it should be similar to this:

    return /*suppress newline*/1 + R"json(
    {
    "capabilities": "needUncompressedVideoFrames_rgb",
    "objectActions": [
    {
    "id": "nx.stub.addToList",
    "name": "Add to list"
    .....
    },
    {
    "id": "nx.stub.SomeNewId",
    "name": "a new name"
    }
    ]
    }
    )json";

    Please, revise carefully your manifests while reading documentation in the .md files.

    Pay your attention, objectAction object can't have the "items".

    0
    Comment actions Permalink
  • Avatar
    Mohamed Thasin

    I am able to get settings 

    0
    Comment actions Permalink

Please sign in to leave a comment.