Jump to content
lenfan

Output for HDA

Recommended Posts

Hi there,

While developing HDA, is it possible to create Output on the fly, say, according to the number of input(at least one or many)?

I've tried to write python codes on OnInputChangd event for HDA, which can be created successfully. But it said the content of locked HDA can't be altered when I use it. It makes sense. Then, I put Output node between For-Loop structure instead and it may create arbitrary outputs dynamically according to requirement. However, the source of each output shows invalid and this HDA can't be created successfully. So this For-Loop method doesn't work either. 

Any suggestion to tackle with this issue? Thank you in advance.

Best regards!

Share this post


Link to post
Share on other sites

You can do a lot of pythonic hack to make this possible with an HDA, allow editing of contents, place down outputs, re save the hda, etc. 

However, I would highly recommend not doing this, and using an attribute or a group as your data split. Houdini is not really designed to have dynamic outputs. 

Think of the HDA more like a tool, or a python module itself. Most tools have standard ins and outs. You don't change how to use a tool, you change the tools with the options.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×