Help Needed with j3o SDK Functions

Hello everyone,

I’m working with the j3o SDK and need some clarification on two functionalities:

Question 1: AppState Selection in AppStateExplorer

When editing a j3o file, clicking “Attach…” in the AppStateExplorer tab opens the “Add New AppState” window. However, the “Select App State” dropdown is empty, even though my project contains classes extending BaseAppState.

  • Can someone explain why the list of classes is empty?
  • How does the population of this list work?
  • Is this a potential bug?

Question 2: Updating Scene Graph Tree with Animations

I implemented a method to add animations from files to a 3D model already open in the scene. However, the “list of animations” under the AnimComposer node doesn’t update when I add them via code. Clicking the “update” button in the SceneExplorer tab also doesn’t refresh the tree.

  • Are there any suggestions on how to force the scene graph tree to update with newly added animations?

Thanks in advance for your assistance!

Edit:
Important note: I am not modifying the core of the SDK but am injecting functions via BaseAppState.

2 Likes

Regarding 1. Yes, possible bug. It works if you enter the class name. But the list is empty for me too.
It should also be possible to run an appstate by right clicking it and selecting “Run AppState” but that doesn’t work either.

2 Likes

I have a “fix” for this. The problem was it did a String match for AbstractAppState. Most people extend BaseAppState nowadays.

1 Like