Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera matrix #31

Open
JohnG0024 opened this issue Dec 11, 2021 · 2 comments
Open

Camera matrix #31

JohnG0024 opened this issue Dec 11, 2021 · 2 comments

Comments

@JohnG0024
Copy link

Hello, is there a way to retrieve the camera RT matrix from a camera parented to empty with a constraint set tracked to the empty? I borrowed some code from your script to set up the camera and constraint and all, and tried to retrieve the RT matrix, but somehow it's not working correctly. Would you be able to help out? Test file here.

@panmari
Copy link
Owner

panmari commented Feb 11, 2022

The file doesn't exist. Did you ever find a resolution? If yes, can you document it here to help others on a similar path?

@mvoelk
Copy link
Contributor

mvoelk commented Feb 12, 2023

I remember doing this via cam.matrix_world . To get the correct values I had to call

bpy.context.scene.view_layers['ViewLayer'].update()

first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants