Jump to content

Copying Debris Pieces


henrik.g

Recommended Posts

Hey everyone!

 

I am trying to create a system with which I can copy debris pieces onto a surface.

 

Should be super simple I thought, yet I already seem to fail at the Copy SOP.

 

I have written out some *.bgeo pieces.

 

I load them back via file SOP and then have a stamping expression in the file path, which looks like this:

 

 

$HIP/Pieces/Debris.`int(fit01(rand(stamp("../copy_pieces", "p", 100)), 1, 470))`.bgeo

 

The file SOP doesn't complain.

The Copy does:

 Invalid Source box: 

 

 

What am I missing?

 

File attached!

 

And thanks so much in advance!

 

DebrisPieces1.hipnc

Link to comment
Share on other sites

You are writing the debris pieces starting from 101, but you are trying to read pieces with numbers 1-100 as well.

Change your expression to $HIP/Pieces/Debris.`int(fit01(rand(stamp("../copy_pieces", "p", 100)), 101, 470))`.bgeo

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