[Solved] Set Static Mesh Method attribute in Houdini

   3814   3   1
User Avatar
Member
118 posts
Joined: Dec. 2013
Offline
We are trying to set the Static Mesh Method to UHoudiniStaticMesh in Houdini instead of Unreal. Also Disable the Affect Distance Field Lighting. This helps with the asset not Generating Mesh Distance Fields every time we move a point on the curve.

We have tried using an Attribute Wrangle set to Detail with @unreal_property_StaticMeshMethod = 2; This did not work for us.

Is there a way to change this property inside of Houdini and not Unreal?

Edit - Added new image
Edited by GlenD - Sept. 14, 2020 09:15:24

Attachments:
06_splineSweep_UI_Disable_Fields_02.png (32.4 KB)

User Avatar
Staff
534 posts
Joined: Sept. 2016
Offline
Hi,

StaticMeshMethod is a development only property. that's mainly used to test/debug mesh creation issues with v2 while it's in Alpha.
It will likely disappear once the v2 plugin is properly released.

If you want the plugin to generate proxy meshes (HoudiniStaticMesh) by default, you can change that in the plugin settings:
Under Static Mesh, “Enable Proxy Mesh”.
Further options are available to control how/when proxy meshes are refined to Static Meshes.
You also have per HDA overrides accessibles via the details panel.



As for the distance field property, we don't apply the uproperties on the HoudiniAssetActor, but only on the output generated by the HDA. That property should stay disabled upon recook/rebuild though, but currently, you'll have to set it manually.

Attachments:
ProxySettings.PNG (14.4 KB)

User Avatar
Member
118 posts
Joined: Dec. 2013
Offline
Thanks for the reply, great information. When we recook/rebuild our asset the Generate Mesh Distance Fields still calculates. I'll look into it more and see if we are activating it on our end.
User Avatar
Member
132 posts
Joined: July 2007
Offline
FWIW, I've had luck controlling distance field generation on HDA-geo, using the detail attribute:
@unreal_uproperty_GeneratedDistanceFieldResolutionScale = 0 or 1;
  • Quick Links