Hi people, is there any other simpler way of displaying items on the skin dynamically based on variables other than my method below?
<group name="mchwasisvisualcues" x="330" y="+110">
<textzone>
<pos x="-170" y="-50"/>
<tooltip localize="true">[Marker]</tooltip>
<size width="490" height="28"/>
<text size="34" color="#ffffff" weight="bold" align="left" action="get_var $start_pos & param_cast percentage & param_cast integer & param_equal 95 ? get_text ' |' : param_equal 13 ? get_text ' |' : param_equal 6 ? get_text ' |' : param_equal 5 ? get_text ' |' : param_equal 4 ? get_text ' |' : param_equal 3 ? get_text '|' : param_equal 2 ? get_text ' |' : param_equal 1 ? get_text '|' : param_equal 0 ? get_text '|' : nothing" localize="true"/>
</textzone>
</group>
I use spaces to move the target/main item. Problem is it gets messy pretty fast. Also the space character seems to take much space than I would like. So I have to skip 2 before updating. If the position parameters of skin markup like group could be executing vdjscript that would be simpler. I could have just done something like
<group name="mchwasisvisualcues" x="param_add '330' 'get_var $start_pos & param_cast percentage & param_cast integer'" y="+110">
<textzone>
<pos x="-170" y="-50"/>
<tooltip localize="true">[Marker]</tooltip>
<size width="14" height="28"/>
<text size="34" color="#ffffff" weight="bold" align="left" action="get_text '|' " localize="true"/>
</textzone>
</group>
<group name="mchwasisvisualcues" x="330" y="+110">
<textzone>
<pos x="-170" y="-50"/>
<tooltip localize="true">[Marker]</tooltip>
<size width="490" height="28"/>
<text size="34" color="#ffffff" weight="bold" align="left" action="get_var $start_pos & param_cast percentage & param_cast integer & param_equal 95 ? get_text ' |' : param_equal 13 ? get_text ' |' : param_equal 6 ? get_text ' |' : param_equal 5 ? get_text ' |' : param_equal 4 ? get_text ' |' : param_equal 3 ? get_text '|' : param_equal 2 ? get_text ' |' : param_equal 1 ? get_text '|' : param_equal 0 ? get_text '|' : nothing" localize="true"/>
</textzone>
</group>
I use spaces to move the target/main item. Problem is it gets messy pretty fast. Also the space character seems to take much space than I would like. So I have to skip 2 before updating. If the position parameters of skin markup like group could be executing vdjscript that would be simpler. I could have just done something like
<group name="mchwasisvisualcues" x="param_add '330' 'get_var $start_pos & param_cast percentage & param_cast integer'" y="+110">
<textzone>
<pos x="-170" y="-50"/>
<tooltip localize="true">[Marker]</tooltip>
<size width="14" height="28"/>
<text size="34" color="#ffffff" weight="bold" align="left" action="get_text '|' " localize="true"/>
</textzone>
</group>
Inviato 7 hours ago
It would be better to tell us what you're trying to do first.
Right now you just modify a text based on a variable.
But my guess is that you want to achieve something different (and therefore a better way may exist)
Right now you just modify a text based on a variable.
But my guess is that you want to achieve something different (and therefore a better way may exist)
Inviato 6 hours ago
Goal is to display a marker based of a variable that keeps on changing from time to time. If the marker was needed on the track waveform cues already have that covered but what of outliers(anywhere other than the track waveform areas)
Inviato 6 hours ago
I used textzone and pipe char to be specific since that's the only way I could think of that acts like a visual marker and could be easily modified eg replaced with an emoji or ascii art of some sort.
Inviato 6 hours ago
I can't understand (visually) what you're after, but most likely a slider element would be a far better option than trying to move a text character around with spaces.
Sliders can be transparent and only their "handle" to be visible.
Now if you want to change BOTH position and "text/handle" that's another case and text can get you up to a point, but it becomes very hard to maintain and adjust / update.
Sliders can be transparent and only their "handle" to be visible.
Now if you want to change BOTH position and "text/handle" that's another case and text can get you up to a point, but it becomes very hard to maintain and adjust / update.
Inviato 6 hours ago
So at the very least I want to have visual cues/clues of where my position variables are set. They are like 3. $start_pos, $end_pos etc. Then if I succeed which I kinda have already, display a box between the points that would also shrink or grow based on the same variables. This feels like the loop action when applied to a song but only that I can customize the look and feel freely.
Inviato 6 hours ago





