-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
967be9a
commit 2be6d18
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from dataclasses import dataclass, field | ||
from typing import List, Dict | ||
|
||
@dataclass | ||
class BlenderConfig: | ||
blender_path: str | ||
render: bool = True # Whether or not to render in blender | ||
render_resolution: List[int] = field(default_factory=lambda: [800, 600]) | ||
render_film_transparent: bool = True | ||
output_prefix: str = 'out' | ||
animation: bool = False # If true, renders a video sequence. | ||
animation_length: int = 60 # Number of frames in the animation. | ||
animation_circle_radius: float = 5.0 # Radius of cirlce on which the camera moves around the center | ||
animation_circle_center: List[float] = field(default_factory=lambda: [0.0, 0.0, 0.0]) | ||
cycles_samples: int = 10 # Number of cycles samples | ||
file_format: str = 'PNG' | ||
|
||
# color_mode='RGBA' | ||
address: Dict[str, str] = field(default_factory=lambda: {"city": "Unknown", "state": "Unknown"}) | ||
|
||
def to_dict(self): | ||
return self.__dict__ |