Jump to content

Switch button with python in Scene Graph Tree - Solaris


Shamanek

Recommended Posts

Hi guys,

In Solaris viewport I am using payloads masks a lot and there is not possible to bind that to a shortcut so I was wondering that maybe, I could write a simple script that does that.

I am talking about this toggle in the picture (Populate all primitives in the viewport)  

 

However, I am struggling a lot to make it work. It's not documented much but I believe it is this class that should do it. But how to use that? Does anyone know, please?
https://www.sidefx.com/docs/houdini/hom/hou/LopViewportLoadMasks.html


I've tried to do this but it gives me nothing. Not even an error.

import hou
hou.LopViewportLoadMasks().setPopulateAll()

 

Also, I’ve tried to do this

hou.LopViewportLoadMasks().dumps()

which gives me information about the scene but it’s not true. It stays the same no matter what I change in the scene graph tree (primitives visibility). 


Am I missing something here? Maybe a connection to the lop stage? Looks like the script returns just some default values. 

IMG_1055.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...