How can I set the default geometry parameters in the input box?

   443   6   1
User Avatar
Member
1 posts
Joined: June 2017
Offline
Hi, I want to ask a question:
How can I set the default geometry parameters for HDA in the input box in the Unreal Engine?
Because from a user experience perspective, I think it's more troublesome to drag and drop the same geometry into the input box every time when using HDA.
So I want to give the user a preset to make it more convenient.
Edited by LayneHsu - July 31, 2019 19:47:36

Attachments:
QQ截图20190731121151.jpg (17.8 KB)

User Avatar
Member
10 posts
Joined: Feb. 2006
Offline
We're curious about this too. We'd like to set the default to Pack Geo before Merging. Anyway to control this?
User Avatar
Staff
369 posts
Joined: Sept. 2016
Offline
Hi,

We've actually added support for this in recent version of the plugin (from 17.5.322).

Geometry inputs can preset their default value:
- The inputs needs to be created from an object merge's objpath parameter (not a SOP input).
- When exposing the parameter, set its default value to a valid asset reference
(obtained via right clicking on the static mesh in the content browser, and choosing “copy reference”)
- After instantiating the HDA, the object should be selected by default
User Avatar
Member
75 posts
Joined: March 2017
Offline
I tried doing this but the references don't seem to work. Are there any changes that need to be made to the object merge node's default settings?
User Avatar
Staff
369 posts
Joined: Sept. 2016
Offline
Nothing special, just the default object merge value to the asset ref.

Here's a simple example

Attachments:
Dam_geomountain.hda (35.4 KB)

User Avatar
Member
37 posts
Joined: June 2019
Offline
I tried too but its not doing anything, will continue to drag n drop each time
User Avatar
Staff
369 posts
Joined: Sept. 2016
Offline
It's a fairly recent addition, so you need to have the plugin from H17.5.322+

Only works with geometry inputs created from an object merge input, as SOP inputs can't have a default value.
  • Quick Links