Hide perpective grid with python

   1656   3   1
User Avatar
Member
15 posts
Joined: March 2015
Offline
Hey guys,

Does anyone of you know how to hide the grid in the perspective view with python. There is a function setDisplayOrthoGrid() but this is only for the ortographic views. Calling this function in the perspective view does nothing. Only by switching back and forth to an orhographic view this will be updated in the perspective view. There is a ui button so you would think it would be possible with python.

Thanks in advance!

Ralph
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
Hello,
I think you want to use this class for that

https://www.sidefx.com/docs/houdini/hom/hou/ReferencePlane.html [www.sidefx.com]
User Avatar
Member
191 posts
Joined: Oct. 2018
Offline
FYI, there was a bug with the reference plane where it was working on the construction plane in earlier releases. They apparently fixed it but we haven't updated our production build yet.

https://www.sidefx.com/forum/topic/66422/ [www.sidefx.com]
User Avatar
Member
15 posts
Joined: March 2015
Offline
Thanks! Sorry for the late reply. I will look into that.
  • Quick Links