###########
2021 SP2 U2
###########

HOOPS Communicator 2021 SP2 U2 is based on HOOPS Visualize HPS 2021 SP2 (unchanged), HOOPS Exchange 2021 SP2 U2, and HOOPS Publish 2021 SP2 U2.


Update supported formats
------------------------

The following format versions are now supported:

* ACIS 2021

See a full list on our :doc:`Supported Formats </overview/supported-formats>` page.


Enhancements
------------

Colors and emissive factors defined in a linear color space for PBR materials are now correctly interpreted.
    
New operator :doc:`Operator.CameraWindowZoomOperator </api_ref/viewing/classes/Communicator.Operator.CameraWindowZoomOperator>` provides zoom to rectangular window area capability.


Functional changes
------------------

Can now remove individual animation players by index or reference using :ref:`removePlayerByIndex() <api_ref/viewing/classes/Communicator.Animation.Manager:removeplayerbyindex>` or :ref:`removePlayer() <api_ref/viewing/classes/Communicator.Animation.Manager:removeplayer>`.

Animations can now be accessed directly through a player using :doc:`Animation.Player </api_ref/viewing/classes/Communicator.Animation.Player>`.

The following methods have been removed:

* ``Animation.KeyframeBuffer.appendScalarKeyframe()``
* ``Animation.KeyframeBuffer.appendQuatKeyframe()``
* ``Animation.KeyframeBuffer.appendVec3Keyframe()``

The following methods no longer require an index. You can now specify by time and the ordering will be managed internally.

* :ref:`Animation.KeyframeBuffer.insertScalarKeyframe() <api_ref/viewing/classes/Communicator.Animation.KeyframeBuffer:insertscalarkeyframe>`
* :ref:`Animation.KeyframeBuffer.insertQuatKeyframe() <api_ref/viewing/classes/Communicator.Animation.KeyframeBuffer:insertquatkeyframe>`
* :ref:`Animation.KeyframeBuffer.insertVec3Keyframe() <api_ref/viewing/classes/Communicator.Animation.KeyframeBuffer:insertvec3keyframe>`


Fixed bugs list
---------------

.. csv-table::
	:header: "Issue number", "Description"
	
	"SDHC-18218", "When importing a DWG file in 3D, points are displayed in too large of a size."
	"SDHC-18175", "Prevent internal error message from reaching the developer console: ``Error: Cannot pick from outside the canvas area``."
	"SDHC-18113", "``getNodesEffectiveLineColor`` throws an uncaught promise rejection in SCS."
	"SDHP-2479", "Context menu transparency toggle behaves incorrectly if spacity has been changed by other means."
	"SDHC-18199", "Transformation matrix affects selection results."
	"SDHC-18123", "Layers tab of a converted DWG does not show all layers."
	