# Can generate scenenodes that are off the canvas

**URL:** https://forums.creativeclouddeveloper.com/t/can-generate-scenenodes-that-are-off-the-canvas/1094
**Category:** UXP Plugin API
**Tags:** api-feedback
**Created:** [July 28, 2019, 3:24am UTC](https://forums.creativeclouddeveloper.com/t/can-generate-scenenodes-that-are-off-the-canvas/1094 "2019-07-28T03:24:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)
#### Post date: [July 28, 2019, 3:24am UTC](https://forums.creativeclouddeveloper.com/t/can-generate-scenenodes-that-are-off-the-canvas/1094/1 "2019-07-28T03:24:40Z")

</div>

Perhaps this is well known, but if you generate scenenodes with `x` coordinates \> 25K or so, the node will be off viewable canvas, but with `.isInArtworkTree == true`.

I don’t know if this is an API bug or not, but it would sure be confusing.

Perhaps attempts to create scenenodes that are entirely off the canvas should trigger an API failure or a console warning?

---

<div class="post-metadata">

### Author: ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)
#### Post date: [July 28, 2019, 10:32am UTC](https://forums.creativeclouddeveloper.com/t/can-generate-scenenodes-that-are-off-the-canvas/1094/2 "2019-07-28T10:32:43Z")

</div>

As, according to the docs, this is

> True if the [node](https://adobexdplatform.com/plugin-docs/GLOSSARY.html#node)’s parent chain connects back to the document root [node](https://adobexdplatform.com/plugin-docs/GLOSSARY.html#node).

([scenegraph · Adobe XD Plugin Reference](https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#scenenodeisinartworktree--boolean))

This is (in my opinion) expected behavior (as the node still connects back to the document root node, may it be visible or not).

While I agree that it seems strange to generate SceneNodes off-canvas, I think there’s nothing wrong with it, by itself. Those limits (and the behavior) should probably receive better documentation, but I think there might be some use-cases where this is useful (e.g., to not entirely delete nodes, but put them off-canvas).

Therefore, I would argue that yes, the documentation should be more clear about this, but I wouldn’t agree that this belongs in the “Bug” category…

---

<div class="post-metadata">

### Author: ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)
#### Post date: [July 28, 2019, 1:28pm UTC](https://forums.creativeclouddeveloper.com/t/can-generate-scenenodes-that-are-off-the-canvas/1094/3 "2019-07-28T13:28:09Z")

</div>

I’ll let the Adobe folks chime in. Seems like something that should be addressed.

Agree there are circumstances where it might be useful, and it clearly shouldn’t just fail quietly.

---

<div class="post-metadata">

### Author: ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)
#### Post date: [July 31, 2019, 1:50pm UTC](https://forums.creativeclouddeveloper.com/t/can-generate-scenenodes-that-are-off-the-canvas/1094/4 "2019-07-31T13:50:06Z")

</div>

@afuchs what’s your thought on this?
