How to automatically partially change an expression link

   1139   1   0
User Avatar
Member
1 posts
Joined: 10月 2019
Offline
Hello. I have a question, maybe you can help me. I have a link to a parameter in Houdini - chs("../../param_2/Shot_021") and I need to change the penultimate two digits "02" with the slider, just copying a new link here does not work. Maybe you know a way?

Attachments:
test.hip (179.6 KB)

User Avatar
Member
30 posts
Joined: 11月 2016
Offline
I attached a file with a few ways of doing it, easiest is probably to just write this as an expression for your parameters:
chs("../../param_2/Shot_"+padzero(2, ftoa(ch("select_shot")))+"1")

I hope that helps.

Attachments:
test_test_123.hipnc (210.3 KB)

  • Quick Links