Uninstancing

   220   3   2
User Avatar
Member
38 posts
Joined: July 2014
Offline
Hi,

so uninstancing in Houdini is a bit tricky. But I was thinking could it be done with a for loop and copy? See attached image. So I have instance points with all attributes coming in and on the left side I have geometry that gets copied. What expression do I need to put in the path to read the instance attribute from points and dynamically change the path per point? thank you

Attachments:
object path.JPG (76.2 KB)

User Avatar
Member
1868 posts
Joined: June 2008
Online
I'm not sure if this will work with a string based attribute but try this in the Object1 field.
point("../foreach_begin1/",0,"path",0)
Edited by Enivob - Sept. 20, 2019 08:39:10
Using Houdini Indie

Windows 7 32GB AMD FX8370 @ 4.1Ghz
nVidia 1070GTX 8BG RAM. Driver: 397.31
User Avatar
Member
105 posts
Joined: April 2017
Offline
If your instance paths are already defined as a point attribute, you can just feed it into the Instance SOP. There's an option there for “Instance Attribute”… this can be a string that points to either a file on disk, or a SOP path using op:/ syntax.
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
38 posts
Joined: July 2014
Offline
Hey guys. Thanks for the help!
Enivob - It didn't work but I watched this video and figured it out. Thanks for the help!
  • Quick Links