Jump to content

What’s wrong with my Attribute Wrangler node?


Ocelote

Recommended Posts

Hi everybody,


 


I’m currently spending a lot of time studying Houdini. Feels great!


I would really appreciate if you guys could help me with this. I’m to trying to generate some geometry with VEX. For some reason my Attribute Wrangle works "Over Points" but not "Over Detail”. Why is that?


 


 


Thanks a lot in advance...

odforce_question.hipnc

Link to comment
Share on other sites

variables like @ptnum or @P don't exist in Detail mode, so you would need to change this:

for (int i = 0; i < @ptnum+1; ++i){
    new_segment(@P, 15, 0.25);              
}

into something like this:

for (int i = 0; i < 10; ++i){
    new_segment(set(0, 0, i), 15, 0.25);              
}

or simply this (to just add one strip):

new_segment({0,0,0}, 15, 0.25);

 

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