|
By R2 Studio - 3 Years Ago
|
Get the location of the current camera (either a camera or the preview camera) and store its x,y,z location in variables. Get the name or id of a selected object Relocate the selected object to the x,y,z location stored in the variables.
So it's a "pick object and bring it to my location" script.
--Ray
|
|
By 4u2ges - 3 Years Ago
|
You can sort of do that already. But you have to find target camera with other camera first. And this does not work for Preview camera and also Preview Camera cannot be referenced in Python API I think.
|
|
By wires - 3 Years Ago
|
As 4u2ges mentioned. the Preview Camera doesn't show in either the Scene tab or in the Timeline object menu and can't be referenced in a script.
|