|
|
"Jay" <pjy### [at] gmailcom> wrote:
> #declare numofpic = 100;
> #declare shift = 1;
>
> #declare X=numofpic;
>
> #declare X5=array [X] { #for (i,0,numofpic^(1/2)[,shift]) i*shift, #end};
>
> #declare Cam3 = camera {
> location <30,25-Y5[frame_number],5+X5[frame_number]>
> look_at <0,10-Y5[frame_number],5+X5[frame_number]>
> }
>
> i don't care about the Y5,i think i can do that by myself if i knew how to make
> X5.
>
> X5 is like there should be 'numofpic' of numbers. for example
> if numofpic is 100 and shift is 1,
>
> X5 is like
>
{1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,```,10,10,10,10,10,10,10,10,10,10};
>
> idk how to put the #for to array structure. plz help me. i appreciate.
I think some clarification is needed:
* Is this your actual scene code, or is it just a condensed or abstract example?
* Which is more important to you, getting the ARRAY itself to work correctly, or
just getting CAM3 to work correctly? (The array may not be necessary.)
* In the #for loop, is 'numofpics' raised to the 1/2 power? (I.e., square root?)
It appears to be.
> X5 is like
>
>{1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,```,10,10,10,10,10,10,10,10,10,10};
Is this what your WANT the values in the array to be?
Post a reply to this message
|
|