ID 333718 - Viewer API: the locationSelected function of ViewerDelegateComponent is passed additional empty strings when a selection occurs

Follow

Problem summary:

When making a selection in Katana, any Viewer Delegate Components will be passed the selected locations, and also the same number of empty strings.

Steps to reproduce:

1. Ensure that InternalPlugins\plugins\Resources\Examples\Libs is included in KATANA_RESOURCES  and launch Katana
2. Open a Hello Pony project
3. Run the following code in the python tab:


t = UI4.App.Tabs.FindTopTab('Viewer (Hydra)')d = t.getViewerDelegateByIndex(0)d.addComponent("TestViewerDelegateComponentA", "TestViewerDelegateComponentA")

4. Start selecting locations in the Scene graph tab (including selecting multiple locations at once).
5. Each time a selection is made the list of selected locations will be printed to the terminal.

Expected behaviour:
The output will look something like this:
-----------> ViewerDelegateComponent A: locationsSelected:
    - /root/world/geo/characters/man_1/geo/lod_lo/body/bodyParts
    - /root/world/geo/characters/man_1
    - /root/world/geo/characters/man_1/geo
    - /root/world/geo/characters/man_1/geo/lod_lo
    - /root/world/geo/characters/man_1/geo/lod_lo/body

Actual behaviour:

The output looks like this:
-----------> ViewerDelegateComponent A: locationsSelected:
    -
    -
    -
    -
    -
    - /root/world/geo/characters/man_1/geo/lod_lo/body/bodyParts
    - /root/world/geo/characters/man_1
    - /root/world/geo/characters/man_1/geo
    - /root/world/geo/characters/man_1/geo/lod_lo
    - /root/world/geo/characters/man_1/geo/lod_lo/body

Workaround:

No known workaround.

Reproduced versions/platforms:

  • 3.0v1a1

Customer version/platform:

Not supplied

    We're sorry to hear that

    Please tell us why