Lei Bao

leibao

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

How to properly merge geo with different attributes? Feb. 9, 2023, 5:20 a.m.

https://gyazo.com/598d823f88baec5a1b48c4d484432e37 [gyazo.com]

as shown in the network(just for demo), in branch A i set point attribute "unreal_instance", in brance B i generate some mesh with polyextrude. so all the point from branch A will have attribute 'unreal_instance' but points in branch B will not. after merging two branch, in the geo sheets, some points will have 'unreal_instance' attribute but some left empty. this will cause problem when used in Unreal. those points with empty 'unreal_instance' will be replaced with a place holder box.
this situations also apply to some other attributes like normal/orient, etc...
so, how can i properly merge these branch in a better way? since it's in a for each loop, i have to merge them first then connect to end block.

read detail attribute(string type) to file path notworking. Jan. 16, 2023, 6:06 a.m.

i am trying to read detail attribute(where i store a file path) to the file sop with
`details('../attribwrangle8/', 'p')`
and this is the value i got
'D:/Houdini Projects/SimpleBuildingGenerator/geo/BuildingAssets/1/1/Building_a.fbx'
the file node wont load file and seems to be the reason of the begining and ending
'
, if i get rid of them manually in file sop, it works perfect.
i am not sure if it's because my stored value has extra '
if that is the reason, how do i get rid of the begining and ending ' in vex
i find it annoying when it comes to string that involve with slash/back-slashes, the \ and / always driving me crazy.
if not, maybe it's the hscript problem?


https://gyazo.com/2d082df03413c0f1d7f2ddcdb0895a66 [gyazo.com]

all i want to do is to send file path string to a file sop so that i could loading different models.

how do you guys deal string that involves path/slash/back-slash stuffs?

any help would be appreciate!

Get point/primitive/detail attribs from any sop using python Jan. 16, 2023, 5:48 a.m.

New to python scripting,
i was wondering how can i access point/primitive/detail attribs from any sops with python scripting?

image url: https://gyazo.com/ba7c3b65a24c9c103065f08225aeeac6 [gyazo.com]
like here, i need to get detail or point attrib(string type) from attribWrangler8 sop to my python script sop 'python2'