db&w documentation wiki

finest software | finest docs

User Tools

Site Tools


tools:instanceinfo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:instanceinfo [2020/09/12 19:01]
lightwolf created
tools:instanceinfo [2020/09/13 12:21] (current)
lightwolf
Line 1: Line 1:
-====== Instance Info Plus (WiP) ======+====== Instance Info Plus ======
  
 +When working with instances, we noticed that the native Instance Info node returns an instance index((Basically the instances numbered starting at 0)) in LW up to 2019, but an instance id ((A location in memory which will change for every launch of Layout or lwsn )) in 2020.
 +
 +So we decided to write a replacement.
 +
 +===== Controls =====
 +
 +==== Instancer ====
 +
 +This allows you to select the Instancer to inspect. The Pop-up will only display items that have an Instancer attached to them.
 +
 +==== Seed ====
 +
 +This is the random number generator seed for the Fixed Random output. A different seed produces a different Fixed Random output. 
 +
 +{{ :tools:pasted:20200913-120243.png}}
 +===== Node Outputs =====
 +
 +==== ID ====
 +
 +This outputs the internal ID of the instance. This will change every time a scene is loaded as it's essentially a location in memory assigned by the operation system.
 +
 +==== Index ====
 +
 +The index of the current instance. Instances are consecutively numbered from 0 to the total number of instances -1.
 +
 +==== Total Instances ====
 +
 +Return the total number of instances generated by the selected instancer.
 +
 +==== Fixed Float ====
 +
 +Returns a value from 0 to 1.0 where 0 is the first instance, 1.0 is the last instance and the remaining ones are distributed between these values in order of their index.
 +
 +==== Fixed Random ====
 +
 +Returns a number between 0 to 1.0 for every instance. This is a random number between this range for every instance. The randomness can be changed using the **Seed** value.
 +
 +==== Position / Rotation / Scale ====
 +
 +The position / rotation / scale of the current instance.
  
 ---- ----
 [[https://www.patreon.com/dbw|{{  ::become_a_patron_button.png?nolink|}}]] [[https://www.patreon.com/dbw|{{  ::become_a_patron_button.png?nolink|}}]]
 This plugin is a bonus plugin for September 2020, made possible by the finest patrons on [[https://www.patreon.com/dbw|Patreon]]. This plugin is a bonus plugin for September 2020, made possible by the finest patrons on [[https://www.patreon.com/dbw|Patreon]].
tools/instanceinfo.1599930065.txt.gz · Last modified: 2020/09/12 19:01 by lightwolf