Jump to content

Primitive counter on a parameter interface?

Recommended Posts


I am making a procedural designing asset/tool, for a wooden house.
Wall and floor frames are being generated in refence to the foundation size.
Larger the foundation, more boards is being created for the walls and floor framing.
Everything is made with just linking a box size parameters to a "slider" on a parameter interface.
Then copied, transferred and merged, to form a simple house frame.  

Is there a way to make a counter on the parameter interface, that displays the number of boards(primitives?) being used?


Thanks /PP




Link to comment
Share on other sites

hey do you mean like this? you can create a detail string that references your copy amount, click on it in the detail debug popup to get a popup in the viewport so you can see the amount. if you name the attribute with the string you'll get a warning, not sure what kind of issues you might get with that but it doesnt seem necessary. hope this helps


Link to comment
Share on other sites

Hey rbesca

Thanks for your response :) 

I am making copies of boards on every 60cm along the house wall, and not using copy to points.. so its bit different setup, and im not skilled enough in houdini to make use of your method in my setup. 

I have attached a simple version of my wall builder and a image to show where i would like to have a counter on parameter interface. 

Not sure if it possible at all.. but i think it would be a nice feature, and the data is right there, in the geometry spreadsheet, i just cant figure how to implement it. 






Link to comment
Share on other sites

Add an integer parameter at Object level in your geometry, then use an expression that points to the quantity you want to display

Example npoints("pack1/")

pack1 being the name of a node in your geometry network

In your network, you can use connectivity (primitives) and attribute promote (primitive ->  detail (max) ) to compute the number of objects for example

you can refer to said quantity with detail("attribpromote1/","class",0)+1

Click on the label once at object level to have the text box display the value instead of the formula.

Edited by AntoineSfx
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...