Archive: "Reg" help


22nd August 2006 17:48 UTC

"Reg" help
I tryed to use the reg function with 2 supersopes 3d mattres but it just dosent work.

/thisisthecontrolsuperscope


mx
=mx+mxb;
my=my+myb;
mz=mz+mzb;

cmx=cos(mx);
smx=sin(mx);
cmy=cos(my);
smy=sin(my);
cmz=cos(mz);
smz=sin(mz);

reg01=mx;
reg02=my;
reg03=mz;

reg04=cmx;
reg05=smx;
reg06=cmy;
reg07=smy;
reg08=cmz;
reg09=smz;

/andthisisoneofthesuperscopesframe


mx
=reg01;
my=reg02;
mz=reg03;

cmx=reg04;
smx=reg05;
cmy=reg06;
smy=reg07;
cmz=reg08;
smz=reg09;

How come it doesn't work?

22nd August 2006 18:26 UTC

Your code should work.. Can you post the entire preset?


23rd August 2006 15:30 UTC

/problem fixed thanks to WOTL.