Skip to content
Forum Archive

make 4 ssc to one

11 posts

greatWho#

make 4 ssc to one

i created a heart, using 4 ssc(see the attached presets..the one is in motion, the other not), is it possible to create this in one?
PAK-9#
Impossible


ok maybe not. Try reading the programming guide
greatWho#
thanx, good work... seems not to be impossible... and thanx for the description in the code
PAK-9#
The principle is extensible to n ssc's

Its a technique that is worth learning. Look at the preset 'Beanies' for example (Winamp Forums Compilation 1 or PAK-9 AVS 5) each of those jumping bean things is a single superscope, which is convenient because it means you can just duplicate them until you have the desired number.
greatWho#
and now you can see, how it looks, after i translated the heart into 3D and made any backgroundfx
greatWho#
i have tried to use the code for another ssc, but maybe i didn't really have understand the functions..

inside the zip is the preset with more ssc and the bugged version with one...
the code(wihtout face and breast):
init:
n=800;adjust=0.0099009900990099;

frame:
t=t-0.05;
index=0;

point:

part=
above(index,99)+
above(index,199)+
above(index,299)+
above(index,399)+
above(index,499)+
above(index,599)+
above(index,699)+; //what part of the heart are we drawing?;

fakei=(index%100)*adjust; //substitute this for where you have used i

r=fakei*2*$pi;
//Bein1;
x1=if(equal(part,0),fakei*0.2,x1);
y1=if(equal(part,0),fakei*0.6,y1);
//Bein2;
x1=if(equal(part,1),-fakei*0.2,x1);
y1=if(equal(part,1),fakei*0.6,y1);
//Torso;
x1=if(equal(part,2),0,x1);
y1=if(equal(part,2),-fakei*0.25,y1);
//Hals;
x1=if(equal(part,3),0,x1);
y1=if(equal(part,3),fakei*0.05-0.25,y1);
//Arm1;
x1=if(equal(part,4),fakei*0.3,x1);
y1=if(equal(part,4),fakei*0.2-0.25,y1);
//Arm2;
x1=if(equal(part,5),-fakei*0.3,x1);
y1=if(equal(part,5),fakei*0.2-0.25,y1);
//Kopf;
x1=if(equal(part,6),cos(r)*0.05,x1);
y1=if(equal(part,6),sin(r)*0.1-0.4,y1);

x=x1;
y=y1;


index=index+1;

//skip this line because it is jumping from one place to another
skip=equal(index,101);
What's wrong with it?

as next, i want to try to move the "body", for example started by the hip, and the rest will move with it...
StevenRoy#
First thing I notice is this line:
above(index,699)+;
You've got an extra plus there that'll cause an error.

Under the "Settings" menu, there's a "Debug Window" you can activate, that'll gives you, among other things, an option that lists these kinds of errors when they happen. I've found it quite useful at times.

Also, the final "skip=" line is incorrect, because it will only skip once, between the first and second segments. If all of your segments start where the previous segment ends, you don't even need this line. Otherwise, I recommend something like this:
skip=bnot(fakei)
This sets "skip" to 1 whenever fakei is 0, preventing the line from being drawn whenever the SSC jumps to the next segment.