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

PhantomCameraManager Singleton #288

Closed
ramokz opened this issue May 3, 2024 · 1 comment
Closed

PhantomCameraManager Singleton #288

ramokz opened this issue May 3, 2024 · 1 comment
Labels
2D Issues concerning 2D scenes 3D Issues concerning 3D scenes core feature Essential to the plugin phantom camera host Related to PhantomCameraHost nodes phantom camera Related to PhantomCamera nodes
Milestone

Comments

@ramokz
Copy link
Owner

ramokz commented May 3, 2024

Project Type

2D, 3D

Feature Description

A singleton that allows the user to access all the PCam and PCamHost nodes from a given scene.
E.g. PhantomCameraManager.phantom_cameras would return all of a scene's PCams as an array, or PhantomCameraManager.active_phantom_camera would return the currently active PCam.

It also opens up for #280 to be more easily integrated, as it would help keep track of PCams as they turn on or off.

Use Cases

Useful for many scenarios.

Means the user can e.g. quickly identify which PCam is active and access its properties without having to store a reference in a script or make their own managers.

(Optional) Proposed Solution

No response

@ramokz ramokz added phantom camera Related to PhantomCamera nodes phantom camera host Related to PhantomCameraHost nodes core feature Essential to the plugin 3D Issues concerning 3D scenes 2D Issues concerning 2D scenes labels May 3, 2024
@ramokz
Copy link
Owner Author

ramokz commented May 3, 2024

Relates to #267

@ramokz ramokz added this to the 0.7.2 milestone May 10, 2024
@ramokz ramokz closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2D Issues concerning 2D scenes 3D Issues concerning 3D scenes core feature Essential to the plugin phantom camera host Related to PhantomCameraHost nodes phantom camera Related to PhantomCamera nodes
Projects
Status: Done
Development

No branches or pull requests

1 participant