# CPlane World Top with Python

**URL:** <https://discourse.mcneel.com/t/cplane-world-top-with-python/151570>\
**Category:** CPython\
**Tags:** windows, mac, python\
**Created:** [December 3, 2022, 7:50pm UTC](https://discourse.mcneel.com/t/cplane-world-top-with-python/151570 "2022-12-03T19:50:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yigit](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/yigit/32/473016_2.png) [@yigit](https://discourse.mcneel.com/u/yigit)\
**Post date:** [December 3, 2022, 7:50pm UTC](https://discourse.mcneel.com/t/cplane-world-top-with-python/151570/1 "2022-12-03T19:50:51Z")

</div>

Hi all,

Is there any possibility to set CPlane World Top in Python without selecting any plane / point

Rg

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [December 3, 2022, 8:18pm UTC](https://discourse.mcneel.com/t/cplane-world-top-with-python/151570/2 "2022-12-03T20:18:02Z")

</div>

Something like this should work:

```python
import rhinoscriptsyntax as rs
xyplane=rs.WorldXYPlane()
rs.ViewCPlane(plane=xyplane)

```

This will set the CPlane in the currently active view.

---

<div class="post-metadata">

**Author:** ![yigit](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/yigit/32/473016_2.png) [@yigit](https://discourse.mcneel.com/u/yigit)\
**Post date:** [December 4, 2022, 6:45am UTC](https://discourse.mcneel.com/t/cplane-world-top-with-python/151570/3 "2022-12-04T06:45:44Z")

</div>

Thank you so much…
