Quick Sign In:  

Forum: General Discussion

Topic: Script School - Page: 34
locoDogPRO InfinityModeratorMember since 2013
How to add strings [append a tag example]

set_var string " text I want to add" & 
set temp `param_add 'get_var string' 'get_browsed_song comment'` &
get_var temp & param_cast 'text' & browsed_song "comment"


quick one, save the text I want to add,
set a temp var, adding the thing I want to add to the thing I want to add to
grab the var, cast it as text, cast it to the thing I want to change

or even briefer
set_var string " text I want to add" & 
get_text "`param_add 'get_var string' 'get_browsed_song comment'`" &
param_cast & browsed_song comment


even briefer still, and in the order that doesn't hurt my primitive brain
set_var string " text I want to add" & 
get_text "`get_browsed_song comment``get_var string`" &
param_cast & browsed_song comment
 

geposted Mon 23 Jan 23 @ 2:19 am
locodog wrote :
How to add strings [append a tag example] ....


Thats a very usefull script... Thanks for sharing ... i love it. <3
 

geposted Mon 23 Jan 23 @ 11:22 am
Hey everybody,

I try to create a day-theme for the Prime GO.
Everythings looks great except the bowser list.
How can I change the colors of the browser list?
Here are the elements the default theme is using:

<define class="primebrowser">
<font fontsize="24"/>
<fontheader fontsize="22"/>
<fontsearch fontsize="16"/>
</define>
...
<filelist class="primebrowser" headerheight="[LINEHEIGHT]" lineheight="[LINEHEIGHT]">
<pos x="+0" y="+50"/>
<size width="[BRWIDTH]" height="[BRHEIGHT]-50"/>
</filelist>

How can I change colors in the design-tag?

Thx Jochen

 

geposted Sun 05 Feb 23 @ 3:14 pm
locoDogPRO InfinityModeratorMember since 2013
@EGR a question better suited for the skins forum.
 

geposted Sun 05 Feb 23 @ 3:19 pm
Electronic Green Room wrote :
Hey everybody,

I try to create a day-theme for the Prime GO. ....



add in the <define class="primebrowser"...> the COLOR children.

https://www.virtualdj.com/wiki/Skin%20Browser.html

When you need mor help please post in the Skin Forum.



 

geposted Sun 05 Feb 23 @ 3:35 pm
hello, help me assign a button so that when you turn it on, the effect 'reverb' and stems fx 'vocal' are activated, and when you press the button again, the effect 'reverb' and stems fx 'vocal' disconnected.

something like this, but it doesn't work: deck right effect_active 'reverb' & effect_stems 'vocal' on : effect_stems off
 

geposted Mon 27 Feb 23 @ 7:02 pm
DJElementDJ wrote :
hello, help me assign a button so that when you turn it on, the effect 'reverb' and stems fx 'vocal' are activated, and when you press the button again, the effect 'reverb' and stems fx 'vocal' disconnected.

something like this, but it doesn't work: deck right effect_active 'reverb' & effect_stems 'vocal' on : effect_stems off


happened!!! it works: deck right effect_active 'reverb' ? effect_stems 'vocal' on : effect_stems off

now the question is how to register so that the button blinks when the effect is on and burns when it is off?

I used to have this: deck right effect_active 'reverb' ? blink 300ms ? color 'magenta' : off : color 'darkmagenta' now it doesn't work.
 

geposted Wed 01 Mar 23 @ 11:44 am
@DJElementDJ

A maybe better script for the button may be:
deck right effect_active 'reverb' ? effect_stems 'vocal' off & effect_active 'reverb' off : effect_stems 'vocal' on & effect_active 'reverb' on


DJElementDJ wrote :
I used to have this: deck right effect_active 'reverb' ? blink 300ms ? color 'magenta' : off : color 'darkmagenta' now it doesn't work.

And your above script for the LED will work as posted.

 

geposted Wed 01 Mar 23 @ 5:46 pm
locodog wrote :
How to add strings [append a tag example]

set_var string " text I want to add" & 
set temp `param_add 'get_var string' 'get_browsed_song comment'` &
get_var temp & param_cast 'text' & browsed_song "comment"


quick one, save the text I want to add,
set a temp var, adding the thing I want to add to the thing I want to add to
grab the var, cast it as text, cast it to the thing I want to change

or even briefer
set_var string " text I want to add" & 
get_text "`param_add 'get_var string' 'get_browsed_song comment'`" &
param_cast & browsed_song comment


even briefer still, and in the order that doesn't hurt my primitive brain
set_var string " text I want to add" & 
get_text "`browsed_song comment``get_var string`" &
param_cast & browsed_song comment


Love the scripting, and cannot get the 3rd script to append, instead it replaces, current comment with the " text I want to add".

Its the get_text "`browsed_song comment``get_var string`" that is not behaving.

Has something changed since the original post that broke it?
 

geposted Wed 01 Mar 23 @ 5:58 pm
locoDogPRO InfinityModeratorMember since 2013
no just a typo, should be get_browsed....
 

geposted Wed 01 Mar 23 @ 6:03 pm
yep just figured it out ... was going to post ..

Thanks Locodog !

Love all your clever ideas !
 

geposted Wed 01 Mar 23 @ 6:05 pm
Maybe even shorter version:
get_text "`get_browsed_song comment``get_text ' text I want to add'`" & 
param_cast & browsed_song comment

saves setting a var.
 

geposted Wed 01 Mar 23 @ 6:26 pm
locoDogPRO InfinityModeratorMember since 2013
yeah thought of that, but wanted to include the idea "grabbed data" if you're wanting to do something like this with script then likely it will be dynamic strings.

Also it would be shorter than what you wrote :P
get_text "`get_browsed_song comment` text I want to add" & param_cast & browsed_song comment
 

geposted Wed 01 Mar 23 @ 6:32 pm
Love it
thank you Locodog ... smiles
 

geposted Wed 01 Mar 23 @ 6:37 pm
Hello Everyone, I am in need of help. I have been playing with variables, and scripts, and I can't figure this out. I need a script for VDJ (Most current version), and my RANE ONE. I would like to reprogram my "TAP" Button to do this.
FX_TAP
When Pressed > Crossfader Curve Fast & Crossfader Hamster, & Key Lock Off & Blink Active
When Pressed again > Crossfader Curve 50%, Crossfader Disable, & Key Lock On

This is what I have now. It works, but not as I want it.
key_lock & crossfader_disable & crossfader_curve "scratch" ? blink : on
 

geposted Mon 06 Mar 23 @ 7:01 pm
locoDogPRO InfinityModeratorMember since 2013
crossfader_disable ? crossfader_hamster on & key_lock off & crossfader_disable off : key_lock on & crossfader_disable on

something like that?
 

geposted Mon 06 Mar 23 @ 7:29 pm
locodog wrote :
crossfader_disable ? crossfader_hamster on & key_lock off & crossfader_disable off : key_lock on & crossfader_disable on

something like that?

I will try it out and see if it works. Thank you so much.
 

geposted Tue 07 Mar 23 @ 5:32 pm
hello guys, how to write a script so that after the cue point every 500ms, the volume of the vocal decreases gradually every 500ms and stops at 10%

all i could think of was: stem 'vocal' 500ms 10%
but it doesn't work.
 

geposted Mon 13 Mar 23 @ 9:45 pm
locoDogPRO InfinityModeratorMember since 2013
you need to call a repeat_start, that rs will be querying param_smaller `stem vocal` 10% ? if 10% is smaller reduce the stem some : if 10% isn't smaller then we got to where we need to be and we can repeat_stop

Should be enough there for you to go on. I've told you pretty much everything without giving you the full script, repeat_start scripts I've covered.
 

geposted Mon 13 Mar 23 @ 10:01 pm
Oh, LOKODOG, it's hard for me. This is what I was able to write after reading your answer: repeat_start? param_smaller `stem vocal` 10% ? 500ms : Repeat_stop
But this, of course, is nonsense.
if possible, then write me a full script, if there is no time, then I will not be offended.

goal : when the track is playing and gets to the cue point, then the stem vocal for 4 seconds is slowly removed to 10%
 

geposted Tue 14 Mar 23 @ 12:25 pm
72%