Expression Question

   1407   1   0
User Avatar
Member
90 posts
Joined: March 2013
Offline
I was watching the Recursive Voronoi tutorial. https://www.sidefx.com/tutorials/recursive-voronoi/ [www.sidefx.com]

Part of the expression he used is the detail expression which I looked up and it sounds pretty straight forward. However, part of the expression he used is “(detail(-1,”iteration“,0)”. My question is in regard to the -1. Why -1? Thanks for helping me understand what's happening here.
Edited by tadian - Oct. 14, 2018 20:09:31
User Avatar
Member
4 posts
Joined: Feb. 2016
Offline
-1 refers to accessing the iteration via the first spare input. So you add a spare input via the gear icon that you use to set parameters and stuff like that. You can add more than one spare input and access them with -2, -3, -4 etc.

Some info on using spare inputs here. http://www.tokeru.com/cgwiki/index.php?title=ForLoops [www.tokeru.com]
https://www.instagram.com/paul_corfield_abstract_realism/ [www.instagram.com]
  • Quick Links