Focus
Focus moves the parent atom around the scene, based on what you (or any other atom/controller) are looking at. This simplifies, in particular, the autofocus setup for Depth of Field adjustments (when used with Sensor plugin).
The plugin is set up with reasonable autofocus settings, meaning you can simply add this to an existing AutoFocusPoint atom in your scene and be done, or pair with Sensor for direct control over your DOF plugin's settings (most commonly PostMagic or PostProcessing). Additionally, if pesky colliders get in the way, you can aim at them, then simply click to add to an ignore list.
How the modes work
Focus Mode - continuously moves this atom to the closest collider within the Viewing Angle.
Follow Mode - this atom continuously follows the target atom/controller, similar to parent lock.
Jump Mode - this atom will stay in place unless triggered via the Jump trigger. When triggered, it will move to the target position and remain there.
Autofocus Instructions
If using PostMagic + AutoFocusPoint (assumes it is configured):
1. add Focus plugin to the AutoFocusPoint atom.
2. that's it - the atom will follow your focus!
If using Focus + Sensor (for more control):
1. create an empty atom
2. add Focus plugin to the atom (default settings will work)
3. add Sensor to the atom
4. within Sensor, add an onChange trigger:
- select the PostMagic or PostProcessing plugin (wherever it is) > Depth of Field > FocalDistance
- set the minimum to 0.1
- set the maximum to 4 (if using a different value, be sure to set the Scale Max within Sensor to match this value)
- optionally add any other triggers (e.g. FocalLength, Aperture, Vignette, etc)
5. That's it!
For the Adventurous
While I'm demonstrating this as an focus aid here, at its core, Focus simply moves the parent atom (whatever that may be) around the scene. This can be used for pretty interesting things beyond DOF control. For instance, you could easily set up Sensor plugins on various body controllers, then measure the distance between this focus atom and those targets for a scripted reaction to what you're looking at. Or what another atom is looking/point at... In particular, this plugin pairs nicely with Sensor for unlocking proximity effects.
Want to have one model react to the gaze of another? That's possible. Want to move a dildo around the scene, whacking things simply by looking? Also possible (although maybe not advisable). Want to drift lights around the scene? Technically this can do that too.
In general, I'd love to see what shenanigans this unlocks for the folks out there more creative that myself!
A brief demo:
Setting up DOF with PostMagic & Sensor from scratch:
Focus moves the parent atom around the scene, based on what you (or any other atom/controller) are looking at. This simplifies, in particular, the autofocus setup for Depth of Field adjustments (when used with Sensor plugin).
The plugin is set up with reasonable autofocus settings, meaning you can simply add this to an existing AutoFocusPoint atom in your scene and be done, or pair with Sensor for direct control over your DOF plugin's settings (most commonly PostMagic or PostProcessing). Additionally, if pesky colliders get in the way, you can aim at them, then simply click to add to an ignore list.
How the modes work
Focus Mode - continuously moves this atom to the closest collider within the Viewing Angle.
Follow Mode - this atom continuously follows the target atom/controller, similar to parent lock.
Jump Mode - this atom will stay in place unless triggered via the Jump trigger. When triggered, it will move to the target position and remain there.
Autofocus Instructions
If using PostMagic + AutoFocusPoint (assumes it is configured):
1. add Focus plugin to the AutoFocusPoint atom.
2. that's it - the atom will follow your focus!
If using Focus + Sensor (for more control):
1. create an empty atom
2. add Focus plugin to the atom (default settings will work)
3. add Sensor to the atom
4. within Sensor, add an onChange trigger:
- select the PostMagic or PostProcessing plugin (wherever it is) > Depth of Field > FocalDistance
- set the minimum to 0.1
- set the maximum to 4 (if using a different value, be sure to set the Scale Max within Sensor to match this value)
- optionally add any other triggers (e.g. FocalLength, Aperture, Vignette, etc)
5. That's it!
For the Adventurous
While I'm demonstrating this as an focus aid here, at its core, Focus simply moves the parent atom (whatever that may be) around the scene. This can be used for pretty interesting things beyond DOF control. For instance, you could easily set up Sensor plugins on various body controllers, then measure the distance between this focus atom and those targets for a scripted reaction to what you're looking at. Or what another atom is looking/point at... In particular, this plugin pairs nicely with Sensor for unlocking proximity effects.
Want to have one model react to the gaze of another? That's possible. Want to move a dildo around the scene, whacking things simply by looking? Also possible (although maybe not advisable). Want to drift lights around the scene? Technically this can do that too.
In general, I'd love to see what shenanigans this unlocks for the folks out there more creative that myself!
A brief demo:
Setting up DOF with PostMagic & Sensor from scratch: