Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Latest commit

 

History

History
51 lines (43 loc) · 1.93 KB

D3DObject.md

File metadata and controls

51 lines (43 loc) · 1.93 KB

D3DObject

Properties

Name Type Description Notes
id str
geometry GeometryType
position List[float]
scale List[float]
scale_linked bool [optional] [default to True]
rotation List[float]
color str
matrix_world List[float] [optional]
prompt str [optional]
mesh_id str [optional]
description str [optional]
mesh_url str [optional]
args List[float] [optional]
visible bool [optional] [default to True]
url str [optional]
root_id str [optional]
parent_id str [optional]
children List[str] [optional] [default to []]
material_strength float [optional] [default to 0.0]
detail_strength float [optional] [default to 1.0]
material_id str [optional]
material_preset MaterialPreset [optional]
material_shader MaterialShader [optional]
material_properties MaterialProperties [optional]

Example

from dream3d.models.d3_d_object import D3DObject

# TODO update the JSON string below
json = "{}"
# create an instance of D3DObject from a JSON string
d3_d_object_instance = D3DObject.from_json(json)
# print the JSON string representation of the object
print D3DObject.to_json()

# convert the object into a dict
d3_d_object_dict = d3_d_object_instance.to_dict()
# create an instance of D3DObject from a dict
d3_d_object_form_dict = d3_d_object.from_dict(d3_d_object_dict)

[Back to Model list] [Back to API list] [Back to README]