db&w documentation wiki

finest software | finest docs

Site Tools


tools:instanceinfo

Instance Info Plus

When working with instances, we noticed that the native Instance Info node returns an instance index1) in LW up to 2019, but an instance id 2) 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.

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.


This plugin is a bonus plugin for September 2020, made possible by the finest patrons on Patreon.

1)
Basically the instances numbered starting at 0
2)
A location in memory which will change for every launch of Layout or lwsn
tools/instanceinfo.txt · Last modified: 2020/09/13 12:21 by lightwolf