Jump to content

Copy Stamping into L-Systems


Recommended Posts

Hey Guys,

 

I am trying to introduce some variation into my copy stamped l-system plants.

 

I am trying to stamp a variable into the l-system rule .. but it does not seem to work ... 

 

copy stamp variable :

 

plant_z = fit(rand($PT),0,1,10,60)

 

example (rule) :

 

X = F - ~( (stamp("./copy1","plant_z",0)) )[[X] + X] + F[F][X]

 

 

... doesn't seem to read the variable at all. Any ideas ?

 

Link to comment
Share on other sites

You're only missing one step: backticks. Something like this should work. Also you might want to round the value you're feeding in the expression to integer, otherwise l-system might freak out.

 

F(1,1,3,3,`stamp("./copy1","seed",0)`)

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