(How) does the camera effect script work in the Replay Editor?
I know there were already a couple threads discussing this, but I cant figure out whether you can use a script to control the camera.
What Im trying to do:
I filmed a video with my camera, tracked the camera motion using Blender, and exported the position and rotation data to a text file. The result looks something like this (each line corresponds to 1 frame in the video):
|------camera position----------|-------camera rotation-------|
224.9051, 390.6299, 105.5979, 27.4825, 94.2573, 163.1965
224.9791, 390.6056, 105.5692, 27.4877, 94.3128, 163.1984
225.0992, 390.6345, 105.5379, 27.5061, 94.3870, 163.2044
now I want to get this data into the mediatracker (matching the movement of the real camera to the ingame camera)
The Camera Effect Script seemed to be the perfect tool for that.
What I've got so far:
I am using this script right now for testing how it works:
Code: Select all
#RequireContext CGameCtnMediaBlockCameraEffectScript
#Include "MathLib" as MathLib
while(True){
OffsetPos[0] = A*200;
OffsetPos[1] = 512.0;
OffsetPos[2] = 15.0;
OffsetRot[0] = 0.0;
OffsetRot[1] = 0.0;
OffsetRot[2] = 0.0;
yield;
}
How can you help me:
- How to use the Camera Effect Script
If I was able to make the camera do anything at all, that would be a huge step for me - Other ideas on how to control the movement of the camera
My last resort would probably be a regular custom camera and AutoHotkey to create lots and lots of keyframes, but that would probably be really annoying
I never have looked at Openplanet, could this be a possibility?
Any help would be appreciated
winnixxl