4. Practical examples: Difference between revisions

From MXWendler Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Download the Javascript Reference folder from https://www.mxwendler.net/de/downloads.html
Download the Javascript Reference folder from https://www.mxwendler.net/de/downloads.html


1) Double click on the "js-demo.mxw" to load the demo.
1) Double click on the "js-demo.mxw" to load the demo.<div>
 
2) Open the I/O Settings Window (CTRL+1) or click on "Settings" → "Inputs and Outputs - Keyboard, Midi, DMX" <div>
2) Open the I/O window (CTRL+1) or Menu: Settings, I/O Midi, Keyboard...
&emsp; and click on SHOW JAVASCRIPT CONSOLE, almost at the bottom of the I/O window.
- click on SHOW JAVASCRIPT CONSOLE, almost at the bottom of the I/O window.


3) Follow the instructions on the Javascript Console.
3) Follow the instructions on the Javascript Console. <div>


COMMANDS:
===Commands:===




* Remember to click on the interface header before giving commands,
Remember to click on the interface header before giving commands,
the operating System needs to know where the keyboard signals are directed.
the operating System needs to know where the keyboard signals are directed.


>>backspace<< starts the patch and selects the LiveEditor Tab.
<code>backspace</code> starts the patch and selects the LiveEditor Tab.
 
<div>
>>spacebar<< (6 times at least) to set up a tap tempo
<code>spacebar</code> (6 times at least) to set up a tap tempo
 
<div>
>> 1 << Sets the render opacity to 0
<code>1</code> Sets the render opacity to 0
<div>
>> 2 << Sets the render opacity to 0.5
<code>2</code> Sets the render opacity to 0.5
 
<div>
>> 3 << Sets the render opacity to 1
<code>3</code>  Sets the render opacity to 1
 
<div>
>> 4 << Writes Output informations on the Javascript console.
<code>4</code>  Writes Output informations on the Javascript console.
Takes a screenshot of the output and saves it in "C:\screen"
        Takes a screenshot of the output and saves it in "C:\screen"
(if the directory already exists)
        (if the directory already exists)

Latest revision as of 14:44, 13 December 2022

Download the Javascript Reference folder from https://www.mxwendler.net/de/downloads.html

1) Double click on the "js-demo.mxw" to load the demo.

2) Open the I/O Settings Window (CTRL+1) or click on "Settings" → "Inputs and Outputs - Keyboard, Midi, DMX"

  and click on SHOW JAVASCRIPT CONSOLE, almost at the bottom of the I/O window.

3) Follow the instructions on the Javascript Console.

Commands:

Remember to click on the interface header before giving commands, the operating System needs to know where the keyboard signals are directed.

backspace starts the patch and selects the LiveEditor Tab.

spacebar (6 times at least) to set up a tap tempo

1 Sets the render opacity to 0

2 Sets the render opacity to 0.5

3 Sets the render opacity to 1

4 Writes Output informations on the Javascript console. Takes a screenshot of the output and saves it in "C:\screen" (if the directory already exists)