Is there any kind of dependency walker?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
strider2000
Posts: 506
Joined: Sat Mar 07, 2015 5:14 pm
Contact:

Is there any kind of dependency walker?

Post by strider2000 »

As I think about sharing scripts, I want to make sure I don't forget that script A is dependent on file B. Is there any kind of dependency walker? How do people test out their scripts to make sure they've include all appropriate dependencies? After all, they're all there on my machine :)
User avatar
synthsin75
Posts: 10280
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Is there any kind of dependency walker?

Post by synthsin75 »

If nothing else, you can temporarily remove all but one of your custom scripts, try to use it, and Moho will tell you when it can't find something the script expects to find.
User avatar
strider2000
Posts: 506
Joined: Sat Mar 07, 2015 5:14 pm
Contact:

Re: Is there any kind of dependency walker?

Post by strider2000 »

True, the manual approach does work :)
User avatar
synthsin75
Posts: 10280
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Is there any kind of dependency walker?

Post by synthsin75 »

You could also write a script to parse the selected script's text and print out every unique global variable of the form **_*****.
Post Reply