zuo yuanle

zuoyuanle

About Me

専門知識
Game Artist
業界:
Gamedev

Connect

LOCATION
China
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

Can Houdini Filecahe Readparticle add a load percentage ? 2025年4月26日6:56

Can Houdini File cahe Read particle add a load percentage function to optimize read and write speed

In Houdini, how to assign levels to the branches of a center 2024年11月27日9:52

I imported a tree from another software and I want to create a growth animation in Houdini. I've already extracted the centerline, but I can't figure out how to set levels for each branch. I hope someone can give me some guidance

MultiParm Block list - return the attribute menu script 2024年6月22日10:06

How can I achieve functionality similar to "Attribute Swap", where the dropdown menu returns the corresponding data types based on the attribute type?
To ensure that your script handles multiple class parameters without overwriting each other and executes correctly, you need to accumulate the results for each class parameter and avoid reassigning the result list. Here's an updated script that ensures the attributes for each class are correctly added to the final result:

r = []
node = kwargs['node']
inputs = node.inputs()
number_casts = node.evalParm("number_casts")
if inputs and inputs[0]:

    geo = inputs[0].geometry()
    
    if geo:
        

#遍历每个属性类别
        for i in range(1, number_casts + 1):
            c = node.parm('class'+str(i)).evalAsString()
        
            if c == 'detail':
                attrs = geo.globalAttribs()
            elif c == 'primitive':
                attrs = geo.primAttribs()
            elif c == 'point':
                attrs = geo.pointAttribs()
            else: # vertex
                attrs = geo.vertexAttribs()
        for a in attrs:
            r.extend([a.name(), a.name()])
return r
Is there anyone who can help guide me? Thank you very much