problems creating animation viewfile

Hi,
I'm having a problem in generating my anim.vf file. I set my views by working
in rview doing
v keys.vf -t 2 etc. every time I change view.

Then I create key.fmt from the command line

./rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh ${vh} -vv
${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t} > key.fmt

Then I want to generate the key.cal file

./rcalc -i key.fmt -e
'$1=recno;$2=px;$3=py;$4=pz;$5=dx;$6=dy;$7=dz;$8=vh;$9=vv;$10=t' keys.vf |
tabfunc Px Py Pz Dx Dy Dz H V T > key.cal

I'm animating 15 fps for 29 seconds so I do
./cnt 435 | rcalc -o key.fmt -f key.cal -f spline.cal -e 't=$1/15' -e
'px=s(Px);py=s(Py);pz=s(Pz);dx=s(Dx);dy=s(Dy);dz=s(Dz);vh=s(H);vv=s(V)' >
anim.vf

This is where I get my error

key.cal, line 1:
Px(x):select(1,);
                ^ unexpected character

here is my key.cal as you specified
more key.cal
Px(x):select(1,);
Py(x):select(1,);
Pz(x):select(1,);
Dx(x):select(1,);
Dy(x):select(1,);
Dz(x):select(1,);
H(x):select(1,);
V(x):select(1,);
T(x):select(1,);
I don't know where I'm going wrong but think it has something to do with reading
from keys.vf into key.cal

I then want to use anim.vf in my ranimate file

Thanks for any help

Tarik

···

--
Tarik Rahman
PhD student, Institue of Perception, Action and Behaviour
School of Informatics
University of Edinburgh

Hi Tarik,

The problem is that keys.cal is not being completely generated. I think that there are a couple of things to look at.

First, I do not think that you are doing quite the right thing to create key.fmt. "key.fmt" should be a file that contains a format, in this case:

rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh ${vh} -vv ${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t}

This should all be on one line and should not contain trailing or leading white spaces. This is the string that rcalc will match to in order to extract your variables.

As far as I can tell, I do not think that this is a valid command:

./rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh ${vh} -vv ${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t} > key.fmt

Second, I believe that there may be a problem with the case of the variable names used. For example, your key.fmt uses all lower case (such as px, py and pz). Whereas in the call to tabfunc and the second call to rcalc you use mixed case for the variable names such as (Px, Py and Pz). I am not sure what os you are running on, it is possible that cygwin ignores case and quite likely that windows does. Unix/Linux/OsX however do expect case to match.

-Jack de Valpine

Tarik Rahman wrote:

···

Hi,
I'm having a problem in generating my anim.vf file. I set my views by working
in rview doing
v keys.vf -t 2 etc. every time I change view.

Then I create key.fmt from the command line

./rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh ${vh} -vv
${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t} > key.fmt

Then I want to generate the key.cal file

./rcalc -i key.fmt -e
'$1=recno;$2=px;$3=py;$4=pz;$5=dx;$6=dy;$7=dz;$8=vh;$9=vv;$10=t' keys.vf |
tabfunc Px Py Pz Dx Dy Dz H V T > key.cal

I'm animating 15 fps for 29 seconds so I do
./cnt 435 | rcalc -o key.fmt -f key.cal -f spline.cal -e 't=$1/15' -e
'px=s(Px);py=s(Py);pz=s(Pz);dx=s(Dx);dy=s(Dy);dz=s(Dz);vh=s(H);vv=s(V)' >
anim.vf

This is where I get my error

key.cal, line 1:
Px(x):select(1,);
               ^ unexpected character

here is my key.cal as you specified
more key.cal
Px(x):select(1,);
Py(x):select(1,);
Pz(x):select(1,);
Dx(x):select(1,);
Dy(x):select(1,);
Dz(x):select(1,);
H(x):select(1,);
V(x):select(1,);
T(x):select(1,);
I don't know where I'm going wrong but think it has something to do with reading
from keys.vf into key.cal

I then want to use anim.vf in my ranimate file

Thanks for any help

Tarik

--
Tarik Rahman
PhD student, Institue of Perception, Action and Behaviour
School of Informatics
University of Edinburgh

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

--
# John E. de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction

Hi Tarik,

I think I have spotted the problem. The first line in the keys.vf file does not have a -t parameter. The first line should always be -t 0 and every line needs to have -t parameter assigned.

rcalc is very unforgiving in this regard. Since your first line did not match the format it just stopped. It is also very sensitive to trailing whitespace, thus if you had "-t 0 " as opposed to "-t 0" this would also cause a problem.

Hopefully this will get you past this piece and onto the next.

-Jack

Tarik Rahman wrote:

···

OK, here's my files I took out the ./

Quoting Jack de Valpine <[email protected]>:

Hi Tarik,

No I do not believe that you should have "./" before rview. Look in
keys.vf, your format string in keys.fmt should correspond to what is in
this file. Why don't you send a message including your keys.vf so we
can see what is in there.

-Jack

Tarik Rahman wrote:

Hi there
Thanks for your help, I forgot to say that I did actually open my key.fmt
     

file
   

and typed in
./rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh ${vh}
     

-vv
   

${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t}
all in one line. I'm supposed to have the ./ before rview right? and also in
     

the
   

keys.vf file too?
I still get the same error even if I change the cases of the variables. I'm
using Redhat 9 and also tried it on cygwin on my laptop and get the same
errors. Don't know what the problem is.

Tarik

Quoting Jack de Valpine <[email protected]>:

Hi Tarik,

The problem is that keys.cal is not being completely generated. I think
that there are a couple of things to look at.

First, I do not think that you are doing quite the right thing to create
key.fmt. "key.fmt" should be a file that contains a format, in this case:

rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh ${vh}
-vv ${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t}

This should all be on one line and should not contain trailing or
leading white spaces. This is the string that rcalc will match to in
order to extract your variables.

As far as I can tell, I do not think that this is a valid command:

./rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh
       

${vh}
   

-vv ${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t} > key.fmt

Second, I believe that there may be a problem with the case of the
variable names used. For example, your key.fmt uses all lower case (such
as px, py and pz). Whereas in the call to tabfunc and the second call to
rcalc you use mixed case for the variable names such as (Px, Py and Pz).
I am not sure what os you are running on, it is possible that cygwin
ignores case and quite likely that windows does. Unix/Linux/OsX however
do expect case to match.

-Jack de Valpine

Tarik Rahman wrote:

Hi,
I'm having a problem in generating my anim.vf file. I set my views by

working

in rview doing
v keys.vf -t 2 etc. every time I change view.

Then I create key.fmt from the command line

./rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh
         

${vh}
   

-vv

${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t} > key.fmt

Then I want to generate the key.cal file

./rcalc -i key.fmt -e
'$1=recno;$2=px;$3=py;$4=pz;$5=dx;$6=dy;$7=dz;$8=vh;$9=vv;$10=t' keys.vf |
tabfunc Px Py Pz Dx Dy Dz H V T > key.cal

I'm animating 15 fps for 29 seconds so I do
./cnt 435 | rcalc -o key.fmt -f key.cal -f spline.cal -e 't=$1/15' -e
'px=s(Px);py=s(Py);pz=s(Pz);dx=s(Dx);dy=s(Dy);dz=s(Dz);vh=s(H);vv=s(V)' >
anim.vf

This is where I get my error

key.cal, line 1:
Px(x):select(1,);
             ^ unexpected character

here is my key.cal as you specified
more key.cal
Px(x):select(1,);
Py(x):select(1,);
Pz(x):select(1,);
Dx(x):select(1,);
Dy(x):select(1,);
Dz(x):select(1,);
H(x):select(1,);
V(x):select(1,);
T(x):select(1,);
I don't know where I'm going wrong but think it has something to do with

reading

from keys.vf into key.cal

I then want to use anim.vf in my ranimate file

Thanks for any help

Tarik

--
Tarik Rahman
PhD student, Institue of Perception, Action and Behaviour
School of Informatics
University of Edinburgh

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

--
# John E. de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

--
Tarik Rahman
PhD student, Institue of Perception, Action and Behaviour
School of Informatics
University of Edinburgh
--
Tarik Rahman
PhD student, Institue of Perception, Action and Behaviour
School of Informatics
University of Edinburgh

--
# John E. de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction

--
Tarik Rahman
PhD student, Institue of Perception, Action and Behaviour
School of Informatics
University of Edinburgh

--
# John E. de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction