Announcement

Collapse
No announcement yet.

INVOKE SCRIPT FROM ANOTHER SCRIPT

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • INVOKE SCRIPT FROM ANOTHER SCRIPT

    HELLO

    HOW TO INVOKE SCRIPT FROM ANOTHER SCRIPT?
    I TRIED

    scene.findcontainer("main").script.invoke("yourAction")

    but it's not working!
    I don't want to use action keys THIS_SCENE*TREE*$main*SCRIPT INVOKE yourAction ok; (working)

    also how to pass parameters like the above action key when invoking from a script

    regards

  • #2
    Code:
    scene.findcontainer("main").script.yourAction()
    And with parameters:

    Code:
    scene.findcontainer("main").script.yourAction("p1")

    Comment


    • #3
      thank you arc for the fast reply, tested and working perfectly
      best regards

      Comment

      Working...
      X