yongbin Posted July 27, 2010 Share Posted July 27, 2010 How can I access my FORVALUE in foreach sop, if I choose "for each group"? Quote Link to comment Share on other sites More sharing options...
graham Posted July 27, 2010 Share Posted July 27, 2010 You use the stamp() function. stamp("..", "FORVALUE", 0) or in the case of the group, since it is a string you need stamps() stamps("..", "FORVALUE", "") Quote Link to comment Share on other sites More sharing options...
yongbin Posted July 27, 2010 Author Share Posted July 27, 2010 Very wierd. I tested it several times before, but it didn't work. and after you said to me that I tested it again, and it works. Anyway, very appreciate. Thanks. Quote Link to comment Share on other sites More sharing options...
s4l4x Posted April 12, 2015 Share Posted April 12, 2015 If you're trying to access the foreach values within a python node this worked for me: index = int(hou.hscriptExpression('stamp("..", "FORIDXVALUE", 0)')) Quote Link to comment Share on other sites More sharing options...
Werner Posted April 13, 2015 Share Posted April 13, 2015 Here you go... https://vimeo.com/7346925 Quote Link to comment Share on other sites More sharing options...
johnLIC Posted April 22, 2015 Share Posted April 22, 2015 (edited) I am watching that vimeo tutorial right now, but the resolution is not high enough for me to see the text. I googled and found this thread, which is leading back to the video I'm watching! Haha! Anyway, I will try again... I'm just trying to do the first stamp that he does at about 10:22, on the xform in the for-each loop. Is there anything glaringly wrong with this?: sin(stamp("../","FORVALUE",0) * ch("../myfreq")) * ch("../myamp") Ha! It was working. Somehow I had pinned to the wrong view or something. Anyway, it just started working. Yes! Edited April 22, 2015 by johnLIC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.