`run` expression in chops not updating

   2439   4   2
User Avatar
Member
143 posts
Joined: Feb. 2012
Offline
Is there anyway to force updating of the `run(“chopls ../geometry1”)` expression in the Channel Name of a Noise Chop when the number of channels brought in by my geometry Chop changes?
At the moment I have to bypass/un-bypass the node for it to recook. Perhaps there is a better way to match the channel names/count?
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
I don't know what do you want to do exactly :cry:
Please upload a simple example about your problem if you can :idea:

But if you wanna Force Cook any node , You can use this python command :

your_node = hou.node(“obj/geo1/CHOP/your_node”)
your_node.cook(True)

Maybe it can help you :?
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
143 posts
Joined: Feb. 2012
Offline
Thanks, Thats what I have in a callback now at the moment.
I was just wanted to add a different noise to point positions. The run command was setting the number/name of noise channels to match the number of translate channels coming from the geo so I had enough different noise channels to add to the point positions.
Changing the number of points coming into chops wouldn't trigger the update of the amount of noise channels needed.
Just thought there might be a better way to get the channel list into the noise channels
Ill try to upload a file later if I have time
User Avatar
Member
7743 posts
Joined: July 2005
Offline
What about using something like this to name the noise channels: (untested)
noise
User Avatar
Member
143 posts
Joined: Feb. 2012
Offline
Thanks edward, that worked great, i put it in this form to match up with the channel names coming from the geo and it worked perfectly!
tx ty tz
  • Quick Links