Data API Changelog¶
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 exception when duplicating a
MaterialGroup.Fix crash when creating a camera on Matter with no product open.
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.