Jump to content

Creating an instance copy of an object


Atom

Recommended Posts

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 by Atom
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Try that :
instancing.hip
I 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 by ben
Link to comment
Share on other sites

  • 1 month later...

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