Graphics

 View Only
  • 1.  Using Visible property is killing a scene

    Posted 10-10-2012 20:08
    I have a scene created that has 4 text fields that are connected to Datalinq. Each text field has a quad behind it for a background. I have scripted the text fields so that if the text is empty, the background box should not show:

    Dim Box1 as xpBaseObject

    Scene.GetObjectByName("Box1",Box1)

    If Text = "" then

    Box1.visible = false

    end if

    This is in the OnSetText event for the text box. The scene is animated to show one text box/background at a time. This works on the first run through, then it just stops (I have it set to loop through each text box, showing one at a time if there is text to display). After it runs through the animation, I have an event that says to jump back to frame 0, making an infinitely looping display. However, whenever I change the visibility of a quad, it runs once and then everything disappears. Any ideas would be greatly appreciated!!

    Thanks,

    Chris


  • 2.  RE: Using Visible property is killing a scene

    Posted 10-18-2012 02:35
    Do you have anything that ever sets the Box1 back to visible=true? Perhaps you should have something like

    If Text = "" then

    Box1.Visible = false

    else

    Box1.Visible = true

    end if

    If you send the project to Ross Tech support they can assist further if you can't figure it out.

    #XPression


  • 3.  RE: Using Visible property is killing a scene

    Posted 10-29-2012 12:17
    Thanks for the response! After banging my head against the wall for far too long, a reboot of the engine seems to have corrected this problem!

    #XPression