# \[cesium-dev\] Accessing Custom CZML Properties

**URL:** <https://community.cesium.com/t/cesium-dev-accessing-custom-czml-properties/6253>\
**Category:** CesiumJS\
**Created:** [November 13, 2017, 4:35pm UTC](https://community.cesium.com/t/cesium-dev-accessing-custom-czml-properties/6253 "2017-11-13T16:35:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Hunter](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/scott_hunter/32/2006_2.png) [@Scott\_Hunter](https://community.cesium.com/u/Scott_Hunter)\
**Post date:** [November 13, 2017, 4:35pm UTC](https://community.cesium.com/t/cesium-dev-accessing-custom-czml-properties/6253/1 "2017-11-13T16:35:52Z")

</div>

There is an existing sandcastle example that shows how to access the value of custom properties. In the example, this code is in the event handlers for the toolbar buttons. In short, custom properties are accessed exactly like any other entity property - by calling getValue to compute the current value for the given time.

[https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=CZML%20Custom%20Properties.html&label=CZML](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=CZML%20Custom%20Properties.html&label=CZML)

---

<div class="post-metadata">

**Author:** ![Klaus\_Rheinwald1](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@Klaus\_Rheinwald1](https://community.cesium.com/u/Klaus_Rheinwald1)\
**Post date:** [November 14, 2017, 6:45am UTC](https://community.cesium.com/t/cesium-dev-accessing-custom-czml-properties/6253/2 "2017-11-14T06:45:03Z")

</div>

Thanks Scott!

I found out about an hour after I wrote that post and deleted it. Sorry it made it to the summary anyway.

My main problem was I could not use a lookup by ID as I need to get the properties attached to a clicked object. Hence my question whether you could attach custom properties to the document instead of a specific entity. Have solved it by inserting a dummy entity at the beginning of my CZML now.

Thanks again,

Klaus
