Graphics

 View Only
Expand all | Collapse all

How to control another scene with script-events than the self-scene

Vincent Detune

Vincent Detune05-27-2013 22:20

  • 1.  How to control another scene with script-events than the self-scene

    Posted 05-11-2013 15:47
    I try to achieve a credit-crawl with an little offset from the left side (the crawl dissapear behind a logo).

    I do that with a SceneGroup as a renderview in a basic scene.

    So far it's working...but i want that the crawl starts when the basicscene goes online, the first time i start works well, but the second time, the crawl is stopped and will never start again (that makes sense to me)...so i wanna start (or reset) the SceneGroup before i start thebasic screen.

    I wanna achieve that with a script-event (in vb.net it's no problem, that works) but i can't get it to work with a script event.

    Questions:

    - can i achieve my goal with this workflow?

    - if so, does someone have a script example for me?

    - wich event must i use?

    Thanks,

    Jurgen


  • 2.  RE: How to control another scene with script-events than the self-scene

    Posted 05-12-2013 11:55
    Why use a renderview ? Put a mask on the main scene of your scenegroup...

    #XPression


  • 3.  RE: How to control another scene with script-events than the self-scene

    Posted 05-12-2013 21:37
    Life can be so easy...thanks Vincent!

    #XPression


  • 4.  RE: How to control another scene with script-events than the self-scene

    Posted 05-13-2013 06:06
    Like you said... And remember, there is always another way to do a thing... ;)

    #XPression


  • 5.  RE: How to control another scene with script-events than the self-scene

    Posted 05-25-2013 15:59
    Hi vincent and jurgen

    I want make that effect.Like Vincent said.i understand that don't need use renderview.instead , put a mask on the main scene of your scenegroup.but as i known.mask used when we have 2 object in a groupobject but text crawl in the child scene is not in groupobject with mask object in the main scene.help me for clearing this problem

    Thanks

    #XPression


  • 6.  RE: How to control another scene with script-events than the self-scene

    Posted 05-25-2013 16:03
    The mask in main scene affect all things in sub-scene that goes under it.

    Be careful, I don't speak about mask that are in layer object, but just a quad with a mask as material.

    #XPression


  • 7.  RE: How to control another scene with script-events than the self-scene

    Posted 05-25-2013 17:40
    Hi !

    thank Vicent i 'll try it tomorrow

    And I have a Qestion that with Prime version i can make this effect :

    i want creat crawl effect with text crawl and has a background bar for text so i creat a scene group with bar in main scene and text in child scene.but when text crawl end the bar not disappear.so i want it automatic disappear when crawl end.so what i need to do.

    Thank.

    #XPression


  • 8.  RE: How to control another scene with script-events than the self-scene

    Posted 05-25-2013 21:07
    Look this thread HERE.

    But with prime version without API option, you can't do that...

    #XPression


  • 9.  RE: How to control another scene with script-events than the self-scene

    Posted 05-25-2013 21:43
    Hi Vicent !

    I mail to ross support and thay said "Prime supports scripting but not API. My project only uses scripting" so i don't known it has or not.you can see my picture and tell me it's script http://www.mediafire.com/view/oeznvycuiefdood/pic.png

    if it has so what software i must install (like visual basic 2010 express,.....)

    Thank

    #XPression


  • 10.  RE: How to control another scene with script-events than the self-scene

    Posted 05-26-2013 06:27
    Ok, my mistake, so you can script in prime. No need of visual studio or else.

    The code you write is wrong. Follow what I said on the other thread.

    #XPression


  • 11.  RE: How to control another scene with script-events than the self-scene

    Posted 05-26-2013 07:12
    oh thanks for best new.

    so follow that you said in other thread :

    "On your last scene of your scene group, after your text, put an event object. Go in Script Editor, "OnHide" and paste this :

    Dim MyTakeItem as xpBaseTakeItem

    Dim MyOutFB as xpOutputFrameBuffer

    Engine.GetOutputFrameBuffer(0, MyOutFB)

    MyOutFB.GetTakeItemOnLayer(0, MyTakeItem) 'replace 0 by layer used by takeitem

    MyTakeItem.SetOffline() "

    i think this is code for my project. and like i ask you that i must need install add software (like visual basic...) to support this code or just add this code to OnHide in Script Editor.

    P/s:sorry for asking you too much because i'm working in TV Cab.next some day my company on-air 2 Sport HD chanel.

    Many thanks.

    #XPression


  • 12.  RE: How to control another scene with script-events than the self-scene

    Posted 05-26-2013 07:37
    No third software is required, just copy/paste.

    #XPression


  • 13.  RE: How to control another scene with script-events than the self-scene

    Posted 05-26-2013 07:54
    Hi !

    In this code tell me "MyTakeItem" and "MyOutFB" what it mean.AS i understand "MyTakeItem" is name of scenegroup in sequencer and "MyTakeItem" is exam as framebuffer1.

    And all this comman is in Xpression API Document

    Thanks !

    #XPression


  • 14.  RE: How to control another scene with script-events than the self-scene

    Posted 05-26-2013 08:23
    You're right... (careful, you pasted too quick ;) )

    #XPression


  • 15.  RE: How to control another scene with script-events than the self-scene

    Posted 05-26-2013 08:55
    Hi

    Today i'm relax at home.tomorrow i go to work and test it.thank for all.Every best thing will come to you :)))))))))))))))))

    #XPression


  • 16.  RE: How to control another scene with script-events than the self-scene

    Posted 05-27-2013 02:18
    Hi

    I test with this code but it not done.i see a x red on OnHide.so maybe code wrong.

    your code :

    On your last scene of your scene group, after your text, put an event object. Go in Script Editor, "OnHide" and paste this :

    Dim SceneGroup1 as xpBaseTakeItem

    Dim Framebuffer1 as xpOutputFrameBuffer

    Engine.GetOutputFrameBuffer(0, SceneGroup1)

    Framebuffer1.GetTakeItemOnLayer(0, SceneGroup1) 'replace 0 by layer used by takeitem

    SceneGroup1.SetOffline()

    Thanks

    #XPression


  • 17.  RE: How to control another scene with script-events than the self-scene

    Posted 05-27-2013 22:20
    Hit the compile button...

    #XPression


  • 18.  RE: How to control another scene with script-events than the self-scene

    Posted 05-28-2013 01:49
    Hi vincent !

    i Hit compile button but it don't get effect.

    i send you pic and my project .can you fix it for me.tell me why it not run.

    http://www.mediafire.com/view/myfiles/#yq14nrhnac4agfd

    http://www.mediafire.com/download/xsi98bdbfz03230/crawlautooffair1.xpf

    Thank vincent

    #XPression


  • 19.  RE: How to control another scene with script-events than the self-scene

    Posted 05-28-2013 15:57
    Hi Hung,

    There was an error in your script; it should be like this:



    Dim SceneGroup1 as xpBaseTakeItem

    Dim FrameBuffer1 as xpOutputFrameBuffer

    Engine.GetOutputFrameBuffer(0,FrameBuffer1)

    FrameBuffer1.GetTakeItemOnLayer(0,SceneGroup1)

    SceneGroup1.SetOffline()



    In the example XPF you sent, the last line was "MyTakeItem.SetOffline" rather than "SceneGroup1.SetOffline".

    You should have been given an error when you tried to compile. When it compiles successfully then the red X will turn to a green checkmark.

    If you are running "Prime" you won't be able to run this script however; as prime does not support scripting unless you add on the "API Option" which can be purchased separately.

    Your project is working okay for me on my XPression Studio machine (which supports scripting).

    #XPression


  • 20.  RE: How to control another scene with script-events than the self-scene

    Posted 05-28-2013 17:02
    Thank brian ford

    i will test it.but i has question that how to known my xpression "prime" add on "API Option".i think that if my xpression run you code ok so this has add on "API option" if not so it don'n have.

    Best regars !

    #XPression