question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature : Object relocation tools

See original GitHub issue

Summary

New tool functionality to aid rapid re-location or re-orientation of scene objects. In the scope of this work, it focuses on non-adjacent operations (ie, light near an object) as opposed to layout-style alignment or distribution operations.

User Story

What

As a user, I’d like to make it easier to move lights (or anything else that is transformable) to where I’m working in a scene, even if they are not currently visible in my current view.

Why

In lighting, it’s common to need to create a light and move it near a character or other scene object as part of initial placement. When a new light is created, it defaults to the scene origin which may be out of view. It is a long-winded process to manoeuvre this into the right place using the current translate-tumble-refine mechanism.

Feature Proposal

Translate Tool Improvements (snap)

Translate the scene selection (if possible) to the clicked point in space by:

  1. Hold down the v key and click in the Viewer with the Translate Tool active.

Notes

  • The bounding box centre of the selection is aligned with the clicked point.
  • If multiple scene locations are selected, the overall bounding box centre used, preserving the relative positions of each location.

Rotate Tool Improvements (aim)

Orient the selection such that its negative z-axis is pointing towards the clicked point in space by:

  1. Hold the v key and click in the Viewer with the Rotate tool active.

Example Scenarios

Translate

  1. Create a new light (assuming the viewer camera is looking elsewhere, it will be off-screen at the origin).
  2. Select the new light in the Hierarchy View.
  3. Turn on the Transform Tool in the viewer.
  4. Hold the v key and click on the ground plane visible in the viewer, roughly where the light should be.
  5. Use the normal translate handles on the light to adjust position to a suitable height.

Aim

  1. Select several lights in a light rig that are intended to illuminate a character, positioned correctly, but not aimed well.
  2. Hold the v key and click on the characters head. The lights will now all be pointing at the character.

Notes

  • Generally scoping this work to lighting/lookdev workflows, rather than full layout workflows, but it’s worth calling out easy wins where there is overlap.

  • In all v-<click> scenarios (translate, aim), if there are no objects under the clicked point, nothing happens. This is as the z-depth is ambiguous, so picking a ‘sensible’ value is tricky, and depends on scene scale, etc…

  • This functionality is a ‘first step’. A proper centre-of-interest tool (along with pivot adjustment) requires some more involved changes to Gaffer itself. We hope these improvements would add value in the mean time.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
boberflycommented, Sep 4, 2019

My 2c would be v snap, because Maya. x is fine though, but it’s grid in my head. Maya snap list

0reactions
themissingcowcommented, Oct 3, 2019

Removed the following, due to prohibitive implementation costs:

  • Context menus (required splitting out a lot of logic from existing tools to shareable code)
  • Drag for continual updates (required significant refactor of selection picking to ignore the affected objects to prevent self-intersection and the erroneous “coming right at you” positioning that results without that).
Read more comments on GitHub >

github_iconTop Results From Across the Web

Move a feature to a specified location—ArcGIS Pro
The Move To tool moves selected features to an absolute coordinate location or in a specified direction from its current location. Features are...
Read more >
Use the Move tool to move elements in a document
Use the Move tool to move elements in a document ... The Move tool helps you position selected content or layers when customizing...
Read more >
How To Use the Move Tool — Lesson 2 - YouTube
This video lesson demonstrates how to use the Move tool to reposition an object or multiple objects along a straight line or to...
Read more >
How Does the Object Mover Work? - KlipDraw
With this tool, you can extract and move figures from the still frame and move them to other zones on the field or...
Read more >
Move tool - Keyshot Manual
To temporarily disable collision detection, you can hold down ctrl on Windows and cmd on Mac while moving the object. Settle The Settle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found