Genesis
02-12-2008, 01:41 AM
Hi Guys, I am trying to make a script to bake a camera motion from a 3 point camera to a normal camera.
Here is what I have,
$select = `ls -sl`;
bakeResults -simulation true -t "1:300" -hierarchy below -sampleBy 1 -disableImplicitControl true -preserveOutsideKeys true -sparseAnimCurveBake false -controlPoints false -{$select};
copyKey;
camera;
pasteKey;
This however gives me an error, I am not sure why?
when I just use:
bakeResults -simulation true -t "1:300" -hierarchy below -sampleBy 1 -disableImplicitControl true -preserveOutsideKeys true -sparseAnimCurveBake false -controlPoints false -shape true {"camera1"};
copyKey;
camera;
pasteKey;
it works, however when it try and make it work on 'selected' and not the defined camera it does not work.
Also, I am currently setting the frames to 300 because I am not sure how to get it to recognize the timeslider, any ideas?
Any help I could get would be awesome, it is rare that I script and I am sure most of this stuff is pretty simple.
Thanks again,
Here is what I have,
$select = `ls -sl`;
bakeResults -simulation true -t "1:300" -hierarchy below -sampleBy 1 -disableImplicitControl true -preserveOutsideKeys true -sparseAnimCurveBake false -controlPoints false -{$select};
copyKey;
camera;
pasteKey;
This however gives me an error, I am not sure why?
when I just use:
bakeResults -simulation true -t "1:300" -hierarchy below -sampleBy 1 -disableImplicitControl true -preserveOutsideKeys true -sparseAnimCurveBake false -controlPoints false -shape true {"camera1"};
copyKey;
camera;
pasteKey;
it works, however when it try and make it work on 'selected' and not the defined camera it does not work.
Also, I am currently setting the frames to 300 because I am not sure how to get it to recognize the timeslider, any ideas?
Any help I could get would be awesome, it is rare that I script and I am sure most of this stuff is pretty simple.
Thanks again,
