Data API Changelog
Version 2022.0
New APIs
-
Add
Database.create_configuration_rule(),Database.find_configuration_rule()andDatabase.list_configuration_rules()methods.Add
Database.export_kdr()andDatabase.export_kdc()methods.Add
Database.active_modelattribute.
-
Add
Model.list_configuration_parameters(),Model.list_configuration_presets(), andModel.create_configuration_preset()methods.Add
Model.selected_surfacesandModel.leader_surfaceproperties.
Configuration:
Add
ConfigurationParameterclass.Add
ConfigurationPresetclass.Add
ConfigurationRuleclass.Add
ConfigurationTargetclass.
-
Add
Surface.selectedproperty.Add
Surface.get_shadow_cast(),Surface.set_shadow_cast(),Surface.get_shadow_receive()andSurface.set_shadow_receive()methods.
-
Add
AspectLayer.lockedproperty.Add
AspectLayer.get_material_assignment_offset_u(),AspectLayer.set_material_assignment_offset_u(),AspectLayer.get_material_assignment_offset_v(),AspectLayer.set_material_assignment_offset_v(),AspectLayer.get_material_assignment_rotation()andAspectLayer.set_material_assignment_rotation(), methods.
LightingColor: AddLightingColor.activeproperty.Environment Group: Add
EnvironmentGroup.import_kev()method to import an environment from .kev file.Environment: Add
Environment.export_kev()method to export an environment to .kev file.
Changed APIs
The
VisibilityLayerclass is now calledGeometryLayerto be consistent with Patchwork 3D concepts. All properties and methods referencing geometry layers have been renamed accordingly.AspectLayer.visibilityhas been renamed toAspectLayer.visible.AspectLayerGroup.visibilityhas been renamed toAspectLayerGroup.visible.
Corrections
Fix crash when creating a
Camerawithout specifying aCameraGroup.
Version 2021.1.3
Corrections
Fix
LightGroup.list_lights()not returning the right light type.Fix enums returning wrong values in some cases when using the direct .p3d access API.
Fix crash when creating a
Camerawhile in Matter with no product open.Fix exception when duplicating a
MaterialGroup.
Version 2021.1.0
New APIs
AxfCPA2Material: Add properties to change the material color.Product: Add properties for SSAO.Visibility Layer: Add
VisibilityLayer.import_triangle_mesh()andVisibilityLayer.import_indexed_triangle_mesh()to create surfaces from meshes.
Corrections
Fix some methods not using their arguments properly.
Version 2020.2.4
Corrections
Fix
AspectLayer.get_material_assignmentnot returning the right material type.
Version 2020.2.2
New APIs
Aspect Layer Group: Add
AspectLayerGroupclass.Aspect Layer: Add
AspectLayerclass. This allows you to assign materials to surfaces or query the material of a surface.Environment Layer: Add
EnvironmentLayerclass. This allows you to assign environments to surfaces or change the global environment of the product.Model: Add
Model.create_product(),Model.find_product()andModel.list_products()methods.
Corrections
Fix
Database.active_materialnot returning the right material type.Fix crash when setting
Database.active_material.Fix no default model, visibility layer and lighting created when creating a database using
P3DFile.create().
Version 2020.2.1
New APIs
-
Add
Database.active_material,Database.active_background,Database.active_environment,Database.active_overlay,Database.active_postprocessandDatabase.active_sensorattributes.Add
Database.active_texture_group,Database.active_background_group,Database.active_environment_group,Database.active_overlay_group,Database.active_postprocess_groupandDatabase.active_sensor_groupattributes.Add
Database.create_texture_group(),Database.find_texture_group()andDatabase.list_texture_groups()methods.Add
Database.create_background_group(),Database.find_background_group()andDatabase.list_background_groups()methods.Add
Database.create_environment_group(),Database.find_environment_group()andDatabase.list_environment_groups()methods.Add
Database.create_overlay_group(),Database.find_overlay_group()andDatabase.list_overlay_groups()methods.Add
Database.create_postprocess_group(),Database.find_postprocess_group()andDatabase.list_postprocess_groups()methods.Add
Database.create_sensor_group(),Database.find_sensor_group()andDatabase.list_sensor_groups()methods.
Background Group: Add
BackgroundGroupclass.Background: Add
Backgroundclass.Camera: Add
Camera.sensorattribute.Material: Add
StandardMaterial.diffuse_gradient_ramp_enabled,StandardMaterial.velvet_gradient_ramp_enabled,MultiLayerMaterialDiffuseLayer.gradient_ramp_enabledandMultiLayerMaterialIlluminationLayer.gradient_ramp_enabledproperties.Environment Group: Add
EnvironmentGroupclass.Environment: Add
Environmentclass.Overlay Group: Add
OverlayGroupclass.Overlay: Add
OverlayandOverlayLayerclasses.Postprocess Group: Add
PostprocessGroupclass.-
Add
Postprocessclass.Add
PostprocessingEffectbase class with some subclasses (more to come):PostprocessingEffectBloomandPostprocessingEffectBlur.
Sensor Group: Add
SensorGroupclass.
Corrections
Fix crash when setting
Database.active_material_grouptoNone.
Version 2020.2.0
New APIs
-
Add
MaterialGroup.import_kmt()method to import a material from .kmt file.Add material creation methods:
MaterialGroup.create_standard_material(),MaterialGroup.create_multi_layer_material(),MaterialGroup.create_mirror_material(),MaterialGroup.create_matte_material()andMaterialGroup.create_env_material().
-
Add
Material.duplicate()andMaterial.remove()methods.Add
Material.export_kmt()method to export a material to .kmt file.Add
FlakesDistribution,LabelMode,RepetitionModeandStandardMaterialTypeenums.Add
MultiLayerMaterialLayerbase class with its subclasses:MultiLayerMaterialDiffuseLayer,MultiLayerMaterialFlakesLayer,MultiLayerMaterialIlluminationLayerandMultiLayerMaterialSpecularLayer.Add material-specific methods to get/set 1 their properties. Currently it is not possible to get/set material gradients, this will come in a future release.
-
Add
TextureGroupclass.Textures can be imported using
TextureGroup.import_from_encoded_data().
-
Add
Textureclass.The texture data can be retrieved (in encoded format only currently) using the
Texture.encoded_data()method.
Corrections
Fix crash when creating a visibility layer
Fix creating a visibility layer not working properly when using
P3DFileAPI.Fix wrong database version after saving a file opened with
P3DFileAPI.Fix no default groups created in Matter library when creating a database using
P3DFile.create().
Version 2020.1.0
Initial release
Footnotes
- 1
Except
SeamMaterialwhere it is not possible to set the properties as it is a deprecated material.