Found 34 posts.
Search results Show results as topic list.
Houdini Engine for Unreal » Different unreal instances for each point in copy to points
-
- TRex92
- 38 posts
- Offline
You would use a multiparm block(list) folder as a parameter on the digital asset with a string inside and use the multiparm value to set the unreal_instance attrib. I attached a quick example modify how you like. You could also use the unreal_ref
Houdini Engine for Unreal » unreal_output_name only works on prims not point clouds bug?
-
- TRex92
- 38 posts
- Offline
Seems like this may be a bug, if it is please let me know and I'll log it. The situation is if I set the output of and HDA to a point cloud to use in Unreal and set the unreal_output_name attrib to have diferent names per point it will only create an output of the first points name. The unreal_split_attr does not seem to work on a point cloud either.
If the HDA is set packed prims and the attribute is on the primitive level it will work.
What I am trying to accomplish and the reason I cannot use a packed prim is I'm using an unreal_instance to set the mesh per point, but I want to be able to name them something logical in the outliner (and not just "StaticAsset1, StaticAsset2, StaticAsset3, etc") any ideas?
If the HDA is set packed prims and the attribute is on the primitive level it will work.
What I am trying to accomplish and the reason I cannot use a packed prim is I'm using an unreal_instance to set the mesh per point, but I want to be able to name them something logical in the outliner (and not just "StaticAsset1, StaticAsset2, StaticAsset3, etc") any ideas?
Houdini Engine for Unreal » Trouble setting UProperty GeneratedFoliageDefaultSettings
-
- TRex92
- 38 posts
- Offline
I receive the following error trying to set the Uproperty GeneratedFoliageDefaultSettings on the Houdini side: LogHoudiniEngineRuntime: Warning: Could net set object property GeneratedFoliageDefaultSettings: ObjectProperty's object class (FoliageType_InstancedStaticMesh) does not match referenced object class (Class)!
My vex code is in a detail wrangle as follows:
I've also tried setting using the string value as follows:
The Unreal type is listed as an ObjectProperty and the Houdini type is listed as a String. Any ideas how to set?
My vex code is in a detail wrangle as follows:
s@unreal_uproperty_GeneratedFoliageDefaultSettings = "/Script/CoreUObject.Class'/Script/HoudiniEngineRuntime.HoudiniInputFoliageType_InstancedStaticMesh'";
I've also tried setting using the string value as follows:
s@unreal_uproperty_GeneratedFoliageDefaultSettings = "Foliage Type Instanced Static Mesh";
The Unreal type is listed as an ObjectProperty and the Houdini type is listed as a String. Any ideas how to set?
PDG/TOPs » Labs Filter by Value
-
- TRex92
- 38 posts
- Offline
So I'm having an issue where the Labs filter node is returning this error.
The previous Topnode does not have any errors and all nodes are processed. Any ideas what might cause this?
Error on child node /obj/GDX_Import1/GDX_Top/filter_by_source/pythonprocessor1: Traceback (most recent call last): File "filter_by_source_pythonprocessor1.generate", line 76, in <module> AttributeError: 'NoneType' object has no attribute '__getitem__'
The previous Topnode does not have any errors and all nodes are processed. Any ideas what might cause this?
PDG/TOPs » workitem by index in sops
-
- TRex92
- 38 posts
- Offline
I found the answer to my own question for anyone else interested
node = hou.node(path to pdg node) pdg_node = node.getPDGNode() #Get work item by index make sure it's unique per work item work_item = pdg_node.workItems[index] #Access attributes using python workItem methods ex. name = work_item.stringAttribute("name")
PDG/TOPs » workitem by index in sops
-
- TRex92
- 38 posts
- Offline
Is there a way to access a particular pdg node and workitem by its index in a python sop?
Solaris and Karma » USD Materials
-
- TRex92
- 38 posts
- Offline
Thank you for this. I have a script that takes usd materials and converts them to principled shaders so that I can export to gltf. This isn’t yet available in Solaris so I was trying to find an automated way to do so
Solaris and Karma » USD Materials
-
- TRex92
- 38 posts
- Offline
Is there a way to access the materials that are stored in a USD file? They also only seem visible using the file node instead of the USD import node. I did see another thread talking about this, but it went in a different direction. Basically I just want the materials to be put into a material library instead of having to recreate them manually. Is this possible?
Technical Discussion » Python Multiprocessing in Houdini
-
- TRex92
- 38 posts
- Offline
Technical Discussion » Python Multiprocessing in Houdini
-
- TRex92
- 38 posts
- Offline
is it possible to run this code using a python node? Every time I try to run the code Houdini ends up freezing. Seems like you can't use the multiprocessing module does anyone know if this is the case?
import hou from multiprocessing import Pool def create_geo(type): node = hou.node("/obj/geo1") def demo(): type = ["sphere", "tube", "box"] with Pool() as pool: pool.map(create_geo, type) def main(): demo() main()
Solaris and Karma » Python LOPs Materials
-
- TRex92
- 38 posts
- Offline
Solaris and Karma » Python LOPs Materials
-
- TRex92
- 38 posts
- Offline
How would I go about finding the primitives and assigned materials using python in LOPs?
Solaris and Karma » USD Export to glTF
-
- TRex92
- 38 posts
- Offline
Is there a way to export a lop using the glTF Rop? I want to export the textures and materials. Or do I need to reconstruct the asset in sops and assign the materials there?
Houdini Engine for Unreal » How to bake an asset at runtime?
-
- TRex92
- 38 posts
- Offline
You can set these as detail attribs and it should work.
i@unreal_uproperty_bBakeAfterNextCook = 1;
i@unreal_uproperty_bReplacePreviousBake = 1;
i@unreal_uproperty_bBakeAfterNextCook = 1;
i@unreal_uproperty_bReplacePreviousBake = 1;
Houdini Engine for Unreal » Houdini Engine for Unreal - Version 2
-
- TRex92
- 38 posts
- Offline
Does anyone know how to set the autobake property on a houdini asset component to be on by default in unreal. I tried setting i@unreal_uproperty_autobake = 1; I also tried just using i@AutoBake and i@Auto_Bake to 1, but that doesn't seem to work either.
For anyone else that is interested I found the solution is:
To set Autobake on by default:
i@unreal_uproperty_bBakeAfterNextCook = 1;
To set replace previous bake on by default:
i@unreal_uproperty_bReplacePreviousBake = 1;
Will the docs be getting an update to include some of these names for parameters on the Houdini asset?
For anyone else that is interested I found the solution is:
To set Autobake on by default:
i@unreal_uproperty_bBakeAfterNextCook = 1;
To set replace previous bake on by default:
i@unreal_uproperty_bReplacePreviousBake = 1;
Will the docs be getting an update to include some of these names for parameters on the Houdini asset?
Edited by TRex92 - 2022年3月17日 16:42:16
Houdini Engine for Unreal » Houdini Asset Component Attributes
-
- TRex92
- 38 posts
- Offline
Does anyone know how to set the autobake property on a houdini asset component to be on by default in unreal. I tried setting i@unreal_uproperty_autobake = 1; I also tried just using i@AutoBake and i@Auto_Bake to 1, but that doesn't seem to work either.
Houdini for Realtime » Procedural Rock Placement
-
- TRex92
- 38 posts
- Offline
The masking I can understand but I'm not sure how to go about cutting across areas which are narrow to one another.
The Laplacian of the distance to the border looks like it may be something but not sure how to create lines using that.
My guess would be after those areas are found and cut you can lay the pieces out in uv space and cut slice through them.
All just guesses if anyone has any ideas I would appreciate it. I've attached my hipFile but it's all over the place with what I was trying.
Image Not Found
Technical Discussion » Class Attribute With A Padding of 2
-
- TRex92
- 38 posts
- Offline
Are you in vex, python = v1.zfill(10), or hscript = padzero(size, value)? Also it would have to be a string instead of an int or float I believe.
Technical Discussion » Command line hython error
-
- TRex92
- 38 posts
- Offline
I'm trying to run a script that pushes the execute button on the pivot painter sop. However when I do so I receive this error "
Traceback (most recent call last):
File "labs::Sop/unreal_pivotpainter::1.1/execute", line 1, in <module>
File "labs::Sop/unreal_pivotpainter::1.1, PythonModule", line 6, in ExportAsset
File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.696/houdini/python3.7libs\hou.py", line 69118, in render
return _hou.RopNode_render(self, *args, **kwargs)
hou.OperationFailed: The attempted operation failed.
Error: FbxExporter::Initialize() failed. Error returned: File not created
Does anyone know why this is?
PS. My code looks like this:
PP2_fbx = hou.node("/obj/Geometry/PP2_Prep/PP2_MAIN/")
PP2_fbx.parm("execute").pressButton()
Traceback (most recent call last):
File "labs::Sop/unreal_pivotpainter::1.1/execute", line 1, in <module>
File "labs::Sop/unreal_pivotpainter::1.1, PythonModule", line 6, in ExportAsset
File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.696/houdini/python3.7libs\hou.py", line 69118, in render
return _hou.RopNode_render(self, *args, **kwargs)
hou.OperationFailed: The attempted operation failed.
Error: FbxExporter::Initialize() failed. Error returned: File not created
Does anyone know why this is?
PS. My code looks like this:
PP2_fbx = hou.node("/obj/Geometry/PP2_Prep/PP2_MAIN/")
PP2_fbx.parm("execute").pressButton()
Houdini Engine for Unreal » Houdini Engine for Unreal - Version 2
-
- TRex92
- 38 posts
- Offline
I'm also interested in the UE5 version of the Houdini Engine plugin. Is there a time frame for when it will be available?
-
- Quick Links