shmuelzon / home-assistant-floor-plan

Home Assistant Floor Plan Generator Plugin For Sweet Home 3D
MIT License
129 stars 4 forks source link

Create render from camera postion(s) #28

Open Zerogiven opened 2 months ago

Zerogiven commented 2 months ago

Hi there :)

I'm already so happy with your plugin, but sh3d has minimal problems especially 3d view with saved camera points. No idea if this only happens at my mac but the only way to get exactly a render from a camera position i had before is to use the "Create picture from camera positions" where i tick all positions i want have and they get rendered.

So it would be very nice to get a feature where you also can select all camera positions which will be rendered. sh3d making images with names of the camera position. So this plugin could export it to a subdirectory like ./<destination>/<camera_position_name>/..... 😃

cheers Chris

shmuelzon commented 1 month ago

Hey, what would you expect of the resulting YAML? That each camera point would be its own floor plan with its own YAML and it would be up to the user to take everything from the relevant saved camera position directory?

Zerogiven commented 1 month ago

Yeah, each camera position is it's own floorplan. I tell you my usecase:

I have some tiny rooms which are not nicely visible at one camera position. So for now i have two camera positions which i am rendering. One from the front and one from the (left) side. I'm using both for two different cards (i have a floorplan dashboard with two tabs: Front / Side).

But i don't think the yaml differs cause now you choose a directory and inside you save the yaml with the pictures inside a directory. Path inside yaml is set to this dir.

/card.yaml /renderings/.. .... And the output for camera positions could be: //card.yaml //renderings/... ... This would do exactly what i'm doing manually, if it's automated i'm planning to make all four sides available in my dashboard ^^ cheers