Jump to content

change asset parameter based on selection


Em_Fn

Recommended Posts

Hi all!

This is the first time I try to create an asset in Houdini. I am just wondering if there's a way to change the parameter on selected object.

I am currently changing the parameter for each object by using its iteration number, can I reference the attribute of a selected object and put that as the name of the parameter in the parameter interface?

This is what I have now: I have to create a parameter for each object in order to change them separately 

5a95ada081cc2_Screenshotfrom2018-02-2719-11-58.thumb.png.3d830488c222e7482329067dd36b8d7b.png

 

I want: (only one parameter but the name updates depends on which object i choose )

5a95ade028acd_Screenshotfrom2018-02-2719-13-30.thumb.png.3f65b84f1ad75282b51a6d414a90131d.png

I have this attribute 'value' that is different for each object, and the values is the same as the iteration number 

I thought maybe I could add this value at the end of the name , so 'pebble'+'value' and that would give me the name of the currently selected object. However, I have no idea how to do this.

5a95aec6441eb_Screenshotfrom2018-02-2719-16-56.thumb.png.4e282a1bad4b9c4a6f5abd8170bb6abc.png

is this possible?

Thank you very much and sorry if this is confusing to understand !

odforce.hipnc

Edited by Em_Fn
Link to comment
Share on other sites

For just the four spheres I think it's better to simply create a switch and change it with a Ordered Menu type parameter. Similar to this

 

 

fYGtps9.png

If you want to create an arbitrary number of spheres I suggest you take a look at the Draw Curve SOP, specifically in the Stroke -> Number of Strokes section of its Type Properties. It's an example of a MultiParm Block type of parameter.

 

Link to comment
Share on other sites

hi vtrvtr!thank you for your reply!

I am trying to create a little rocky ground generator, which the rocks will be proceudrally generated so the user can change different parameters, but i want the user to be able to change each rock as they wish after the rocks have been iterated (to be scattered on ground)

sort of like copy stamping and adding randomness to the attribute  so they all look different, but I don't want them to be random 

I think the MultiParm Block type is a way but if there's a lot of rocks I am not sure it will be very efficient as the user will have to find out which number is belonged to the rock 

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.

Guest
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...