Accesso rapido:  

Forum: General Discussion

Topic: Script School - Page: 27.2
set_var 'DeckColorFX' "Echo" & 
param_cast 'DeckColorFX' & filter_selectcolorfx

Thanks, it works.
I didn't notice on FB
 

Inviato Thu 22 Sep 22 @ 6:11 pm
Hi,
I think there is an error when loading the name of the ColorFX effect when setting Filter (it loads as Filter). Please try the following script
filter_selectcolorfx "Filter" &
set 'ColorFXSelect' `filter_label "name"` &
var_list & wait 1000ms &
filter_selectcolorfx "Cut" &
wait 1000ms &
set 'ColorFXSelect' 'ColorFXSelect' &
param_cast 'ColorFXSelect' & filter_selectcolorfx
 

Inviato Sun 25 Sep 22 @ 7:29 pm
mg_1978PRO InfinityMember since 2008
hi, i use Sidelist like a Sequencer…and in my Sidelist i have “Sequencer” samples, but any time i open VirtualDj my Sidelist is empty..so when i use a mapped specific play button in my Pioneer DDJ-RZX….i don’t have samples. I would load a “Sequencer” playlist (i have saved my sidelist like a playlist, and it’s name is “Sequencer”) at first play:
Sequencer Play button: browser_window ‘sidelist’ & file_count ‘sideview’ & param_equal 0 ? browser_gotofolder ‘Playlist’ & browser_scroll +1 & get_filename & param_contains ‘Sequencer’ ? sidelist_load & play : browser_scroll +1 : play

but doesn’t work correctly :( can you help me???
 

Inviato Sat 01 Oct 22 @ 3:05 pm
mg_1978PRO InfinityMember since 2008
mg_1978 wrote :
hi, i use Sidelist like a Sequencer…and in my Sidelist i have “Sequencer” samples, but any time i open VirtualDj my Sidelist is empty..so when i use a mapped specific play button in my Pioneer DDJ-RZX….i don’t have samples. I would load a “Sequencer” playlist (i have saved my sidelist like a playlist, and it’s name is “Sequencer”) at first play:
Sequencer Play button: browser_window ‘sidelist’ & file_count ‘sideview’ & param_equal 0 ? browser_gotofolder ‘Playlist’ & browser_scroll +1 & get_filename & param_contains ‘Sequencer’ ? sidelist_load & play : browser_scroll +1 : play

but doesn’t work correctly :( can you help me???


solved: for help everyone:
browser_gotofolder ‘Playlist\Sequencer’ & sidelist_load & play
work! i thinked that browser_gotofolder was only for folders, is for file (Sequencer is a file Sequencer.m3u) directly too 👍

 

Inviato Mon 03 Oct 22 @ 9:45 am
Mirda Draxal wrote :
Hi,
I think there is an error when loading the name of the ColorFX effect when setting Filter (it loads as Filter). Please try the following script
filter_selectcolorfx "Filter" &
set 'ColorFXSelect' `filter_label "name"` &
var_list & wait 1000ms &
filter_selectcolorfx "Cut" &
wait 1000ms &
set 'ColorFXSelect' 'ColorFXSelect' &
param_cast 'ColorFXSelect' & filter_selectcolorfx


Solved. It is better to ask for the current name of the colorfx effect
set 'ColorFXSelect' `filter_selectcolorfx`

This will return the correct name "FILTER"
I still don't understand why when I select the FILTER effect appears as the colorfx name FILTR.



 

Inviato Tue 04 Oct 22 @ 5:08 pm
AdionPRO InfinityCTOMember since 2006
Perhaps a bug in the language file you use?
 

Inviato Tue 04 Oct 22 @ 5:17 pm
I want to setup the stems padpage to match seratoDJ stem pad setup...
 

Inviato Wed 05 Oct 22 @ 7:53 am
Adion wrote :
Perhaps a bug in the language file you use?

You're right!!
Translation error.

 

Inviato Wed 05 Oct 22 @ 7:17 pm
Hi.
How to select a deck using a variable?
This script is broken.
set  'a' 1 &
deck 'a' &
(deck action)
 

Inviato Wed 05 Oct 22 @ 7:42 pm
locoDogPRO InfinityModeratorMember since 2013
That never worked so it can't be called broken. query the var against a value, if true select the deck in long form.

could select accept a param? [it doesn't] syntactically it could, but most cases a bracketed query is a fine solution.
 

Inviato Wed 05 Oct 22 @ 8:49 pm
mg_1978PRO InfinityMember since 2008
hi at all! i would map a button that pushed “holding” 700ms set ‘variable’ 1 while_pressed, not holding make action1:
button= holding 700ms : set ‘variable’ 1 : var ‘variable’ 1 ? set ‘variable’ 0 : action1

but doesn’t work correctly :(
could you help me? thanks
 

Inviato Thu 06 Oct 22 @ 6:05 am
locoDogPRO InfinityModeratorMember since 2013
holding & while_pressed don't work well in the same script and is best avoided
 

Inviato Thu 06 Oct 22 @ 6:09 am
mg_1978PRO InfinityMember since 2008
locodog wrote :
holding & while_pressed don't work well in the same script and is best avoided


what do you advise to me to make this button 2 different actions with “holding” and only “click”?

 

Inviato Thu 06 Oct 22 @ 8:11 am
locoDogPRO InfinityModeratorMember since 2013
holding 300ms ? action if held : action if pressed
 

Inviato Thu 06 Oct 22 @ 8:17 am
mg_1978PRO InfinityMember since 2008
locodog wrote :
holding 300ms ? action if held : action if pressed


in script? thanks!!
i don’t know held or pressed in “script”

 

Inviato Thu 06 Oct 22 @ 8:58 am
locoDogPRO InfinityModeratorMember since 2013
if held or if pressed aren't actual script, just descriptive for the outcomes for a holding ? query
 

Inviato Thu 06 Oct 22 @ 9:06 am
locodog wrote :
That never worked so it can't be called broken. query the var against a value, if true select the deck in long form.

could select accept a param? [it doesn't] syntactically it could, but most cases a bracketed query is a fine solution.


I need to continuously check the ColorFX settings for all decks (the cycle is in oninit), I thought something like this.
deck master repeat_start '$RP_DJM_900nxs' 250ms &
(deck master repeat_start_instant '$RP_ColorFX' 40ms 4 &
set 'SelectDeckColorFX' +1 &
(var 'SelectDeckColorFX' 5 ? set 'SelectDeckColorFX' 1 : nothing) &
deck 'SelectDeckColorFX' &
........
........
........)
.....
.....

 

Inviato Thu 06 Oct 22 @ 9:12 am
locoDogPRO InfinityModeratorMember since 2013
I've been back for 2 minutes and I'm already getting irritated.

set varname +1 is wasteful in your circumstance, use cycle varname 4
that gets rid of your bracketed wrap round bit, after that
( var varname 0 ? deck 1 select : var varname 1 ? deck 2 select : ... ) & whatever
 

Inviato Thu 06 Oct 22 @ 9:24 am
Just wanted to say ...... So so great to have you back Locodog ! !
 

Inviato Thu 06 Oct 22 @ 9:31 am
locodog wrote :
I've been back for 2 minutes and I'm already getting irritated.

set varname +1 is wasteful in your circumstance, use cycle varname 4
that gets rid of your bracketed wrap round bit, after that
( var varname 0 ? deck 1 select : var varname 1 ? deck 2 select : ... ) & whatever


1/ I'm glad that someone who knows script is taking care of us here
2/ I apologize for any mistakes in English. I'm not a native speaker.
3/ I would rate myself as a slightly more advanced beginner in scripting.
4/ Thanks for CYCLE. I tried what you suggest first.
5/ What you suggest won't work, what I noticed is that what happens in the script between (deck X select) doesn't carry over to the script after ()
This is just a test script
This will work but unusable for the cycle
deck 1 &
cycle 'varname' 2 &
(var 'varname' 0 ?
deck 1 & play & wait 1000ms & stop :
var 'varname' 1 ?
deck 2 & play & wait 1000ms & stop :
nothing)


this always starts deck1
deck 1 &
cycle 'varname' 2 &
(var 'varname' 0 ?
deck 1 :
var 'varname' 1 ?
deck 2 :
nothing) &
wait 100ms &
play & wait 1000ms & stop
 

Inviato Thu 06 Oct 22 @ 5:56 pm
59%