Utility Widget - World Input

   1285   5   0
User Avatar
Member
43 posts
Joined: Dec. 2012
Offline
I just watched the videos on utility widgets. [www.sidefx.com] Does anyone have any examples of how to use the World input in a blueprint widget? I have a selection of grouped geo taht I want to input into a world input but not sure how to implement in the blueprint. Any help would be much appreciated.
User Avatar
Staff
23 posts
Joined: Jan. 2023
Offline


https://www.sidefx.com/docs/houdini/unreal/apihda.html [www.sidefx.com]

The API docs should have you covered here. You can use the `Create Empty Input` node and set its class to WorldInput. Set the input objects to your selection. There are several ways to get the assets in your world, if you already have them selected, you can use I `Get Selected Assets` node and feed that output directly into the `Set Inputs Object` node.

Follow all the outputs/inputs for wrappers and Houdini API from that image and that should have you cooking(pun intended).
Edited by Cody Spahr - Sept. 9, 2024 16:48:28
User Avatar
Member
43 posts
Joined: Dec. 2012
Offline
Cody Spahr


https://www.sidefx.com/docs/houdini/unreal/apihda.html [www.sidefx.com]

The API docs should have you covered here. You can use the `Create Empty Input` node and set its class to WorldInput. Set the input objects to your selection. There are several ways to get the assets in your world, if you already have them selected, you can use I `Get Selected Assets` node and feed that output directly into the `Set Inputs Object` node.

Follow all the outputs/inputs for wrappers and Houdini API from that image and that should have you cooking(pun intended).

Thank you for your help. I had another question if you don't mind? Basically I'm promoting an object merge as an input for my HDA and the set input doesn't seem to work. Either that or the "bind event on post instantiation" doesn't seem to be getting called for some reason. I did a print log and my step one prints but the step 2 for the bind event does not print not sure what I am doing wrong. Or if I am setting the input correctly for the object merge param on my HDA?
Edited by TRex92 - Sept. 10, 2024 17:20:34

Attachments:
BP_Widget.jpg (157.8 KB)

User Avatar
Staff
23 posts
Joined: Jan. 2023
Offline
No worries. Looks like you need to take the (Return Value) from the `Create Empty Input` node, and feed that into your (Target) for the `Set Inputs Object` & (In Input) on `Set Input Parameter` nodes. Both are coming from some other variable, it's a bit blurry to read. But I think if you swap those around, it should work fine.

Here is an example I have working with world inputs on an Object Merge parameter. This grabs everything in my level with that tag, and adds it to my input.

Attachments:
2024-09-10_15-18-07.png (191.1 KB)

User Avatar
Member
43 posts
Joined: Dec. 2012
Offline
still doesn't seem to work for me
Hopefully this is a better image
Edited by TRex92 - Sept. 11, 2024 08:46:09

Attachments:
BP_Widget_3.jpg (309.4 KB)

User Avatar
Member
1 posts
Joined: May 2018
Online
If anyone bumps into this, you have to check your event delegate to work in editor in the details panel.
  • Quick Links