threedb.controls.blender.scale¶
Control the object scale. An example config file using this control can be found here: https://github.com/3db/3db/tree/main/examples/unit_tests/scale.yaml.
-
class
threedb.controls.blender.scale.
ObjScaleControl
(root_folder: str)¶ Bases:
threedb.controls.base_control.PreProcessControl
This control scales the object.
Continuous Parameters:
factor
: scaling factor which takes any positive number. Setting thefactor to 1 maintains the same object size. (default range:
[0.25, 1]
)
-
__init__
(root_folder: str)¶ Construct a BaseControl
- Parameters
root_folder – The folder containing all the data for this 3DB experiment. All paths are lative to his folder
-
apply
(context: Dict[str, Any], control_args: Dict[str, Any]) → None¶ scales the object in the scene context by a factor factor
- Parameters
context – The scene context object
factor – Scaling factor which takes any positive number. Setting the factor to 1 maintains the same object size.
-
unapply
(context)¶ Rescales the object to its original dimensions
- Parameters
context – The scene context object
-
threedb.controls.blender.scale.
Control
¶