Graphics

 View Only
  • 1.  scripting reordering masked shapes

    Posted 10-30-2024 14:49

    Hi, I am looking for ideas on how to reorder groups via script that can be triggered in sequencer

    the groups contain masks and I want to be able to set the order of the groups so that I can control which group renders over which via script

    The MoveTo method reorders the hierarchy but it doesn't live update

    Any other ideas?

    Thanks, R

    #XPression

    ------------------------------
    Ronen Lasry
    FULL MENTAL JACKET
    Los Angeles United States
    ------------------------------



  • 2.  RE: scripting reordering masked shapes

    Posted 10-31-2024 07:55

    Hi, Ronen.

    MoveTo works as usual.

    Have a question: what kind of engine you use for pushing the script to run?



    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------



  • 3.  RE: scripting reordering masked shapes

    Posted 10-31-2024 14:11
      |   view attached

    Hi Roman, 

    I need to change the order while the scene is on-air .. I can't change to another scene to refresh 

    Ideally using a script event in a scene director

    Attached is a simple test scene that shows the problem I am having with MoveTo


    ------------------------------
    Ronen Lasry
    FULL MENTAL JACKET
    Los Angeles United States
    ------------------------------

    Attachment(s)

    xpp
    test-order.xpp   615 KB 1 version


  • 4.  RE: scripting reordering masked shapes

    Posted 10-31-2024 14:20
      |   view attached

    updated test scene - this version indeed shows that MoveTo works but not while the scene is on-air 



    ------------------------------
    Ronen Lasry
    FULL MENTAL JACKET
    Los Angeles United States
    ------------------------------

    Attachment(s)

    xpp
    test-order.xpp   614 KB 1 version


  • 5.  RE: scripting reordering masked shapes

    Posted 10-31-2024 15:12
      |   view attached

    I've changed the scripts.

    And don't use 'engine.GetSceneByName("SORT_SCENE2", mscene, false)' in this case, only 'scene'. 

    Part Yor script must be look like

    scene.GetObjectByName("L_TOP", top)
    scene.GetObjectByName("L_BLUE", blue)
    scene.GetObjectByName("L_PINK", pink)
    scene.GetObjectByName("GREEN", green)



    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------

    Attachment(s)

    xpf
    test-order_103124.xpf   93 KB 1 version


  • 6.  RE: scripting reordering masked shapes

    Posted 10-31-2024 15:36

    Thank you Roman!! 



    ------------------------------
    Ronen Lasry
    FULL MENTAL JACKET
    Los Angeles United States
    ------------------------------