blenderproc.python.modules.provider.sampler.Path module¶
-
class
blenderproc.python.modules.provider.sampler.Path.
Path
(config)[source]¶ Bases:
blenderproc.python.modules.main.Provider.Provider
Samples a path to one of the files in folder defined by a path.
Example 1: return a path to a random .obj file in the defined folder.
{ "provider": "sampler.Path", "path": "/home/path/to/folder/*.obj" }
Configuration:
Parameter Description Type path A path to a folder containing files. string random_samples Amount of samples, which should be returned int return_all If this is true the full list is returned bool