Script Question
Posted: Wed Jan 11, 2017 7:02 pm
Hi.
I am a newbie at Octane scripting and need to know if there are any good references to do the following:
I have a camera and I am putting a camera flash at some distance behind it, so that I get those distinctive hairline cast shadows. My problem is that a camera has a position and a target in world space to direct the view of the camera, but my little flash cube only has a position, also in world space. There is no way to move the flash with the camera simply by moving the camera and letting the flash follow it wherever it goes. As a result, I have some math that can easily calculate where the flash should be based only on the camera's position and target, but no way to access the camera's position and target (x, y, z) values to do the calculations. Then, I need to output the Flash position calculated from the script to the flash object's position node.
I imagine this is a LUA question, but not sure.
I am a newbie at Octane scripting and need to know if there are any good references to do the following:
I have a camera and I am putting a camera flash at some distance behind it, so that I get those distinctive hairline cast shadows. My problem is that a camera has a position and a target in world space to direct the view of the camera, but my little flash cube only has a position, also in world space. There is no way to move the flash with the camera simply by moving the camera and letting the flash follow it wherever it goes. As a result, I have some math that can easily calculate where the flash should be based only on the camera's position and target, but no way to access the camera's position and target (x, y, z) values to do the calculations. Then, I need to output the Flash position calculated from the script to the flash object's position node.
I imagine this is a LUA question, but not sure.