Atom Posted October 12, 2014 Share Posted October 12, 2014 (edited) Hi All, I have a series of objects, which are road tile. I want to write a python script that will arrange the roads into a drivable road. I have a working script for Blender and I want to port it to Houdini. What code would I use to create an instance of one of the road pieces? Also, what is the preferred method for storing the pieces? In other software I could store the pieces in another document or scene and then have another scene or document for the generated output. Does Houdini have such a scene/doc mechanism? Thanks. Edited October 12, 2014 by Atom Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted October 13, 2014 Share Posted October 13, 2014 Hi. Not sure you need any scripting for this. Probably all you need is a bunch of SOPs with copy-stamping technique. Watch any tutorial on copy-stamping, there is plenty of them. Also, what is the preferred method for storing the pieces? In other software I could store the pieces in another document or scene and then have another scene or document for the generated output. Does Houdini have such a scene/doc mechanism? Most of the time houdinis bgeo is fine. For efficiency, you can use Packed Primitives or PolySoup. As i can see, you have no houdini experience yet. You need to learn some basics first. Quote Link to comment Share on other sites More sharing options...
ben Posted October 13, 2014 Share Posted October 13, 2014 (edited) Try that :instancing.hipI guess it's what you want to do.An instancer with some python to define the logic and create points, and objects used for instancing.Up to you to define the logic... edit : for the pieces you can have .obj on your drive and use a file to read from there Remember also that the detail view is very very usefull when working with attributes. Edited October 13, 2014 by ben Quote Link to comment Share on other sites More sharing options...
Atom Posted November 19, 2014 Author Share Posted November 19, 2014 Thanks for the HIP file Ben. That is a great start. 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.