PDA

View Full Version : Creating Custom Vis (not much explanation needed)


Richman777
8th March 2003, 17:48
I am creating a skin for personal use and was wondering on how to create a custom vis like in nebular. The coding for that one is mixed in there but they did theirs kind of strange. I was wondering if there was a script of like a custom vis for the skin (I dont' need to click it and it change or anything, I just want to have one custom vis). I don't need any like explaining cause I can read the script and understand. If there are any skins that have a straightforward custom vis (that isn't like mixed all in with the rest of the skin) or if anyone has one on hand, please post here.

hammerhead
8th March 2003, 17:59
There has been one posted recently by Iplaythespoons in Maki Cheats.

iPlayTheSpoons
8th March 2003, 18:20
http://frisbeemonkey.com/winamp3/references/maki.php

ya...its the 7th one down called "Custom Vis". glad someone will get some use out of it

Richman777
8th March 2003, 19:02
hehee I'm an idiot actually, hehe I knew that was there and didn't even think about it first of all but that's not the reason I'm talking about.

I dont' know what I was thinkin when I said the nebular (skin) did their vis wierd, I just modified that script cause it was so plain and simple to edit, I'll post this skin up soon, It will get criticized but I don't care, I did it for myself and like customized to my desktop, there is no thinger toggle or eq toggle because I don't ever use them and I haven't skinned the playlist yet but hey, its for me hah, so whatever, but anyway, I figured out how to make a custom vis from the nebular scripts (there are a lot of helpful things in that skin for scripting in case anyone was wondering) and it only took me about 20 minutes to make one after I figured out how stupid I was

Vica
9th March 2003, 04:40
I made Nebular and the main differences between iPlayTheSpoons' script and mine is that mine uses a map instead of animated layers and has the left and right vuMeter's superimposed by two images for the vis insted of just the center vuMeter and one image.

Nothing else is different.

Naamloos
9th March 2003, 08:33
Layer_FX custom vis is still teh l33t :) (check VEX winshade, vis mode :))

iPlayTheSpoons
9th March 2003, 09:07
i love that vis....you gotta see what theyve got in invicta though...as they say in france, it "0wnz0rz j00"...im not 1337 :P

hammerhead
9th March 2003, 11:52
Yes, Invicta's visualizers ARE the undisputed ones- especially the one in the mini mode.

-hh

Richman777
9th March 2003, 13:27
Vica man, your script is nice, it lets you do a lot with it, I made a pretty nice vis with mine, I had to change it thouh so when you click it, it didn't turn it off, that bothers me for some reason (and again since I said it was like for personal use, ya know)

I like the fact that with winamp 3, if I want to do it, I can, and I don't really have any problems with scripting, I mean at least I can manage

Richman777
9th March 2003, 13:33
Actually, here is a pic of it, the blue light in the middle is a button but also a light, it fades from off to on using alphalevel and I used the timer from nebular for the pause. Anyway, the light in the middle also controls the pledit, so when you click it, the light comes on and stays on no matter what as long as the pledit is open (which I haven't skinned yet). And then the two little round buttons on the top, they are drawers that slide in and out when you click the middle line on the top (its small but I needed soemthing inconspicuous) That was my first scripting defeat even if it is messy script, it works. Also, those lines above and below the vis go back and forth while playing. Overall it really was just to experiment with script, which is why the graphics are sub-par, I didn't want to spend a while on the graphics, mainly the xml/maki which I did. Now if I need to make an actual skin, I can.

Vica
9th March 2003, 14:47
If you wanna make the vis able to be turned off, you would need to add another part to the script. You'd need to make the layers for your vis ghost=1 and them make 2 buttons that are dummy layers below them so that when left click they hide/show the vis layers. In which case it would be best to have them in a group, that way you can hide the entire group.

#include "../../../../lib/std.mi"

Global Button dummylayer;
Global Group visgroup;
Global int VisVisible;

System.onScriptLoaded() {
VisVisible = 1;
}

dummylayer.onLeftClick() {
Group visgroup= getContainer("main").getLayout("normal").getObject("vis-group");
if (VisVisible == 0) {
visgroup.show();
VisVisible = 1;
}
else {
visgroup.hide();
VisVisible = 0;
}
}

I hope that helps...

Richman777
9th March 2003, 15:01
on teh script from nebular, on the vislayer.m file, I just changed all the assignments when onleftclick or whatever to 1 so it will always stay on, before if I clicked it, it would turn it off, like just using the script that was in the nebular files.

Richman777
11th March 2003, 04:31
I've updated the graphics on it because the one above was just too crappy, I'll put a screen sometime soon

Richman777
11th March 2003, 04:35
here is the screen of the new skin (its not a design, its functional, still haven't skinned the pledit)

The top is a viz using Spoons animation one (I wanted to try something different)

When the skin plays, top middle lights up, the three on the left and right are the viz, I think you can figure out the basis behind it.
Its not perfect, and I got rid of the drawer that I spent forever doing but that was good practice and now I could do it much easier. Anyhow, learning experience and now I have a custom skin no one else has that matches my desktop somewhat.

dodger758
23rd April 2003, 01:17
i'm having trouble with the custom vis...i have a image with 15 layers (i figured i could leave out the last one, since i just want to do a test run, then i'll tweak it). and whenever i load my skin a red and black box pops up on my screen sayin it can't run the script, and it says guru meditation and division by zero or somethin close to that...my multi layered image is saved as .png, is that alright? not sure whats goin on, thanks, cyaz

iPlayTheSpoons
23rd April 2003, 03:33
that means your script isnt finding the objects its looking for

maybe you could show us the code your vis deals with

dodger758
23rd April 2003, 21:02
i got the box gone, but it's still not makin the bars bounce and all...here's the code

<animatedlayer
id="Vis.Animation"
x="88" y="178"
w="4" h="1"
image="player.vis"
autoplay="0" autoreplay="0" move="0"
/>
<script id="customvis" file="scripts/customvis.maki"/>

iPlayTheSpoons
23rd April 2003, 21:07
well that looks right at first glance...but w="4" and h="1" is a really small animation...are you sure thats right (theyre supposed to relfect the size of one of the frames)

dodger758
23rd April 2003, 21:26
yea the image is bigger, but the content on each frame is only 4x1, so i thought i had to put that in. i'll try making it as large as the image...again...or something, i guess

dodger758
23rd April 2003, 21:27
when i save the image for my animated layer, do i save it as png, because whenever i open up a png that originally hade multiple frames, they are all merged

iPlayTheSpoons
23rd April 2003, 21:32
heres what an animation should look like (yes, png):

http://www.teamchasepark.com/~iplaythespoons/vis.png

get it?

if each frame is 4x1 then leave the w and h tags as they were

eh?one
23rd April 2003, 21:41
the "layers" or frames should be layed side by side as in the example above and not one on top of each other

dodger758
23rd April 2003, 21:44
yea, i'm getting the test subject bastard child version to work, but i'm still only getting one bar, and since it's a vis, i want all...16 or whatever it is

iPlayTheSpoons
23rd April 2003, 21:52
custom vis's (like the one here) react to volume levels, not the indivual channels like a normal vis. you cant get the 16 individual channels through maki.

dodger758
23rd April 2003, 21:57
oh...alright. well learnin all of this will definately be handy for future skins, but since this my first, and the situation calls for it, it looks like i'm going to use the "colorband" stuff. thanks alot. and once this is finished. i owe you much credit on my site on whatever page i publish it on.