Here’s a variant that doesn’t require you to type any names, plus you get super 
efficient packed primitives. 

Basically, you just pack each set of primitives (i.e. one for each sphere, 
torus, etc) first, then merge them all together in a Merge SOP. Now you can 
just grab them as individual primitives inside VEX which is incredibly 
convenient. It works because each packed primitive has the @path attribute to 
indicate where it came from that you can use directly in the @instancepath 
attribute.

Hopefully the attached image should show up below.

A





> On 27 Mar 2017, at 18:47, Fabricio Chamon <[email protected]> wrote:
> 
> hijacking the thread, while staying on topic =) :
> 
> I'd like to instance randomly between 3 objects on the resulting points of a 
> scatter node. Here`s my take at it:
> 
> <houdini.jpg>
> 
> now the question: while this works I don't like the idea of typing in object 
> names on the string array..I'd prefer something like wiring inputs to a merge 
> node and querying the connected nodes from that merge node from inside attrib 
> wrangle. Is that possible, or are there more clever ways to accomplish the 
> same task?
> 
> thanks!
> 
> 
> 2017-03-21 10:13 GMT+01:00 Fabricio Chamon <[email protected] 
> <mailto:[email protected]>>:
> thanks for the link Jonathan. It is so informative! And it clearly points a 
> beginner to the right direction performance-wise, as there are many ways to 
> do the same thing in vex.
> 
> 2017-03-21 0:42 GMT+01:00 Eugene Flormata <[email protected] 
> <mailto:[email protected]>>:
> so this hasn't changed much since in the 16 update? I just started some 
> tutorials on game tutors 
> and bought https://vimeo.com/195580569 <https://vimeo.com/195580569>, it got 
> into vex pretty quickly.
> coding in general is pretty outside my skillset, so I'm looking for basics in 
> houdini to pick up.
> https://www.pluralsight.com/courses/houdini-practical-math-tips 
> <https://www.pluralsight.com/courses/houdini-practical-math-tips> I even 
> bought a month of pluralsight to learn this, which I think Jordi posted in a 
> thread a while back?
> 
> 
> I'm trying to find more things to learn houdini and upgrade my skillset
> thanks for the post!
> 
> On Mon, Mar 20, 2017 at 4:02 AM, Jonathan Moore <[email protected] 
> <mailto:[email protected]>> wrote:
> Something for those of you that are trying to get to grips with VEX Wrangles 
> in Houdini
> 
>  
> 
> https://vimeo.com/173658697 <https://vimeo.com/173658697>
>  
> 
> It’s a Jeff Wagner 2hr session so it has plenty of (valuable) digressions, 
> and on that basis it’s one that you’ll want to watch a few times. Be sure to 
> download the deck and example files too (I’d download the Vimeo video as well 
> so you can setup bookmarks in VLC). Jeff has been with SideFX since the very 
> beginning so his webinars are always full of great insights into Houdini’s 
> mysterious ways. 😉
> 
>  
> 
> This was released soon after 15.5 was introduced so it’s the most up to date 
> VEX Wrangles material available from SideFX.
> 
> 
> ------
> Softimage Mailing List.
> To unsubscribe, send a mail to [email protected] 
> <mailto:[email protected]> with "unsubscribe" in the 
> subject, and reply to confirm.
> 
> 
> ------
> Softimage Mailing List.
> To unsubscribe, send a mail to [email protected] 
> <mailto:[email protected]> with "unsubscribe" in the 
> subject, and reply to confirm.
> 
> 
> ------
> Softimage Mailing List.
> To unsubscribe, send a mail to [email protected] with 
> "unsubscribe" in the subject, and reply to confirm.

------
Softimage Mailing List.
To unsubscribe, send a mail to [email protected] with 
"unsubscribe" in the subject, and reply to confirm.

Reply via email to