Stevie Mac Posted June 18, 2020 Share Posted June 18, 2020 Hi guys I'm trying to get the align node to just put the current loop name in the 'Align To' box. So into the 2nd algin input is the same geo named the same as teh first input so if I just type a name e.g. BACK in the it all works fine! So I need the 'Align To' to just either read the name attrib of the current loop or the value of the metadata which reads the name. Sadly, name, @name, detail(-1,"value",0); (with the extra input) & I've linked to the meta node without the extra input but no luck. Any ideas? Thanks Quote Link to comment Share on other sites More sharing options...
fencer Posted June 18, 2020 Share Posted June 18, 2020 Check how it works. https://www.sidefx.com/docs/houdini/model/looping.html Quote Link to comment Share on other sites More sharing options...
Stevie Mac Posted June 18, 2020 Author Share Posted June 18, 2020 (edited) I've read this but still can't see where I'm going wrong. Edited June 18, 2020 by Stevie Mac fixed Quote Link to comment Share on other sites More sharing options...
fencer Posted June 18, 2020 Share Posted June 18, 2020 (edited) 4 hours ago, Stevie Mac said: I've read this but still can't see where I'm going wrong. Hm, if you need to get current loop number you should ask for "iteration" in second block. detail("../block_begin1_n", "iteration", 0) Edited June 18, 2020 by fencer Quote Link to comment Share on other sites More sharing options...
Stevie Mac Posted June 18, 2020 Author Share Posted June 18, 2020 But the 'Align To' is looking for a name string so wouldn't 'iteration' give me an integer? I need the Align To to match the name of what is coming into it's 2nd input. So if the current iterations name is BACK if I type in back in the 'Align To' it all works fine I just need that to read the name attrib somehow. Thanks Quote Link to comment Share on other sites More sharing options...
fencer Posted June 18, 2020 Share Posted June 18, 2020 (edited) 1 hour ago, Stevie Mac said: But the 'Align To' is looking for a name string so wouldn't 'iteration' give me an integer? I need the Align To to match the name of what is coming into it's 2nd input. So if the current iterations name is BACK if I type in back in the 'Align To' it all works fine I just need that to read the name attrib somehow. Thanks Align To - Which primitive to align to. If blank aligns to first primitive in the auxiliary input. Edited June 18, 2020 by fencer 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.