Graphics

 View Only
  • 1.  COM API "“ OnSceneState Not Firing

    Posted 08-11-2015 00:41
    I'm trying to use OnSceneState's event handler to determine whether a scene is online or offline but it doesn't seem to fire the IxpSceneEvents_OnSceneStateEventHandler.

    public delegate void IxpSceneEvents_OnSceneStateEventHandler(xpScene Scene, int State); is the definition the DLL is giving out.

    Any ideas?


  • 2.  RE: COM API "“ OnSceneState Not Firing

    Posted 08-11-2015 00:52
    That is only used when a scene is part of a roll or crawl. The xpScene has an IsOnline property you can just use instead.

    #XPression


  • 3.  RE: COM API "“ OnSceneState Not Firing

    Posted 08-11-2015 02:03
    How would you go about getting a listener to see if a template is online since IsOnline would require polling which isn't ideal.

    #XPression


  • 4.  RE: COM API "“ OnSceneState Not Firing

    Posted 08-11-2015 02:05
    Sorry I made a mistake; in Version 6.0 and above, OnSceneState should trigger even when not using Rolls/Crawls. In versions prior to 6.0 you will need to poll. Which version are you running?

    #XPression


  • 5.  RE: COM API "“ OnSceneState Not Firing

    Posted 08-11-2015 02:13
    v5.9 Developer. I'm not too sure where I can get the v6 of the Developer edition as I got the v5.9 beta builds directly from Ross.

    #XPression


  • 6.  RE: COM API "“ OnSceneState Not Firing

    Posted 08-11-2015 02:16
    You will need to contact Ross tech support.

    #XPression


  • 7.  RE: COM API "“ OnSceneState Not Firing

    Posted 08-12-2015 07:13
    I got a hold of v6 but it still didn't work.

    #XPression


  • 8.  RE: COM API "“ OnSceneState Not Firing

    Posted 08-12-2015 16:23
    My guess would be that you are registering the listener for a scene copy (or maybe the original), but then you are putting a different scene copy on air.. When you call getSceneByName that gets a new scene copy unless you pass False as the final optional argument. The listener your register is only for the specific scene copy that you register it for.

    If you can post a sample of your code we might be able to spot the issue?

    #XPression