A way to start Designer Script from Code?
Posted: Sat Mar 14, 2020 7:09 pm
I am making a keyboard for Designer currentlly, idea is that it is like a code snippet that anyone could use and customize it for their own needs.
For this reason I try to avoid doing things through code if it can be done through designer, since by default the user who would use this keyboard, would not know how to program with Hollywood.
I am right now thinking of a solution to a problem which has to do with "Enter"-button.
I am currently having this numpad system where you can push number puttons and it displays them.
What I am trying to achieve right now is that when Enter button is pushed, it will go to this IF-ELSEIF-ELSE part, where you can put for example:
Idea would be for that "Show an Error" that it would for example display "Wrong Code" on display, play an error sample and then after 5 second go back to normal display.
I could easily do this through coding, but since this is meant for Designer users to use and customize, I would need some way to make in such way that users would have control for it through Designer.
What comes to my mind is that as Designer normally uses these Scripts (as in Scripts and Layers tab), would it be possible to jump to some specific script line through code?
That what I am hoping is that user could make separate place for script tab which would be that error sequence, where he could decide to show a text layer, play a sample, wait 1000 and then remove the text layer and display another - as example.
And then the code would hopefully be simply:
Is there any way to do this, or do you have some other suggestion how I could do this in such way that I could give control for the Designer user to fix the error or right code sequence through designer?
For this reason I try to avoid doing things through code if it can be done through designer, since by default the user who would use this keyboard, would not know how to program with Hollywood.
I am right now thinking of a solution to a problem which has to do with "Enter"-button.
I am currently having this numpad system where you can push number puttons and it displays them.
What I am trying to achieve right now is that when Enter button is pushed, it will go to this IF-ELSEIF-ELSE part, where you can put for example:
Code: Select all
IF input="1234"
reveal LAYER 1
ELSEIF input = "23144"
Reveal LAYER 2
ELSE
Show an Error
ENDIF
I could easily do this through coding, but since this is meant for Designer users to use and customize, I would need some way to make in such way that users would have control for it through Designer.
What comes to my mind is that as Designer normally uses these Scripts (as in Scripts and Layers tab), would it be possible to jump to some specific script line through code?
That what I am hoping is that user could make separate place for script tab which would be that error sequence, where he could decide to show a text layer, play a sample, wait 1000 and then remove the text layer and display another - as example.
And then the code would hopefully be simply:
Code: Select all
ELSE
JumpToScriptLocation "wrong code"
ENDIF