Jump to content

Stamping a File-Path (copy stamping strings)


Recommended Posts

Hey folks :)

I have a series of bgeo files. geo_1, geo_2, geo_3 [...], geo_80.

What I want to do now is import them using a file SOP, and then copy them to a bunch of points (randomly) using the copy SOP and it's stamp function.

What i did so far:

connecting my point source to the right input of the copy SOP.

connecting my file SOP to the left input of the copy SOP.

copy node:

stamp inputs -> checked!

stamp variable: rand_geo

expression: round(fit01(rand($PT),0,80))

expression explained: give me a random integer number (based on the point number) between 0 and 80.

file node:

$HIP/bgeo/geo_'stamp("../copy2","rand_geo",1)'.bgeo

This stamp expression should end up giving the file SOP for each iteration of the copy node a different file-path leading to import a different geo-file each time. But it is not working like this. What did I do wrong?

Thx for your help!

Edited by Scratch
  • Like 1
Link to comment
Share on other sites

oh maaaaaaaaaaaan!!! I hate syntax! :D

Now it works! Thx alot!! Yeah! :)

lol, next time remember that string and filename fields will not show the result of expressions by clicking the label with the left mouse button. You must click the middle mouse button to toggle displaying of the results. Try it, you should be able to toggle the display of the full filename.

  • Like 1
Link to comment
Share on other sites

oh nice! didn't know that either! I tried and it works as you said it would.

Let me say that this forum is awesome! Such quick replies, such helpfull people... just absolute superb! THX! :D

Edited by Scratch
Link to comment
Share on other sites

i ment internet forum / bulletin board / message board.... i may have translated wrong in the first place, sorry.

My first language is german, i'll try my very best ;)

I was being sarcastic. That's my bad. I'm Canadian. It's impossible to translate what we say sometimes. ;)

Link to comment
Share on other sites

  • 1 year 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...