Search - User list
Full Version: Digital Asset Hotkey working in the scene viewer
Root » Technical Discussion » Digital Asset Hotkey working in the scene viewer
chrisc
Hello,

I created a simple digital asset "mirrorAll" (mirror with an * in the "group" entry). It appears in Tab/Digital Asset and once selected, it works fine, I can mirror the entire geometry without having to select manually all the primitives.

How can I assign a hotkey to this digital asset working in the Scene Viewer to accelerate modeling ?

I've tried to create a tool in a new shelf : it works in the Network View but not in the Scene Viewer.

The best working way I found to accelerate a little the modeling in the Scene Viewer, is to make an entry in a Radial Menu and select it, and it works fine. But the hotkey assigned to this entry doesn't work.

Thanks for you time, cheers, Chris
vikus
Hi,

it works in the Network View but not in the Scene Viewer.
If the hotkey fails ensure that you have set the correct context or global mapping.

If you intend to emulate the tab key in the scene viewer which connects the selected node to the tool you are applying, try this:

target_node = hou.selectedNodes() # ref to selected node(s)
if target_node: 
    target_node = target_node[0]
    target_node.setSelected(False)
    # init your hda...
    node_type_name = 'box' # here your hda type name
    your_hda = target_node.parent().createNode(node_type_name)
    # set network properties
    your_hda.setInput(0, target_node)
    your_hda.setDisplayFlag(True)
    your_hda.setRenderFlag(True)
    your_hda.setSelected(True)
    target_node_pos = target_node.position()
    your_hda.setPosition(hou.Vector2(target_node_pos[0], target_node_pos[1] - 1))

If you attemp to setup through the asset type properties, then you have to add the shelf tool manually: docs [www.sidefx.com]

Assign the hotkey through the shelf tool which you added to the shelf tool bar, not in type properties of the hda - do not work, at least not for me.

It should also appear in viewers tab menu now:
chrisc
Thanks a lot for your time.

The asset is already in Tab/Digital Assets.
I assigned a shortcut to the asset in a personal shelf, the shortcut works fine in the Network View but not in the Scene View.
I forgot to mention that I'm on Archlinux/KDE Plasma, so it could be the problem.

Thank again for your time, I appreciate it.
Have a nice day Vikus, Chris
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB