Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maya Tool - Screen Depth Dragger #96

Open
david-cattermole opened this issue May 5, 2019 · 0 comments
Open

Maya Tool - Screen Depth Dragger #96

david-cattermole opened this issue May 5, 2019 · 0 comments
Labels
help wanted maya tool A user tool inside Maya.

Comments

@david-cattermole
Copy link
Owner

Description

It is common practice when modelling using cameras to move objects closer or farther away from a camera, in Screen Space. This can be difficult using native Maya tools.

We wish to select multiple transform nodes, Mesh vertexes, NURBS CVs, Mesh faces, etc, and move them towards or away a camera. The user should have precise control over the depth, using the mouse position.

The camera may be the active viewport, or (optionally) another camera in the scene.
A GUI should be added to allow the user to set the specific camera. The camera options would be;

  • Active Viewport Camera
  • camera1
  • camera2
  • etc..

Usage

With one transform.

  1. Select a transform node.
  2. Activate a viewport.
  3. Run tool.
  4. Drag mouse to set depth, relative to the current screen depth.
    The selected transform node is moved closer or farther away from the active viewport camera.
    The transform node is moved away keeping the transform pivot-point in screen-space.

With multiple transform nodes:

  1. Select multiple transform nodes.
  2. Activate a viewport.
  3. Run tool
  4. Drag mouse to set depth, relative to the current screen depth.
    The selected transform nodes are moved closer or farther away from the active viewport camera.
    The transforms all move away from their local pivot point.

Optionally, the user may wish to scale a transform node up/down proportionally so the object stays exactly matching in screen space, otherwise the default action should be to only translate and NOT scale the nodes.

For Mesh vertexes or NURBS CVs, scale is unneeded and will be skipped.

The tool should support a mixture of both Mesh/NURBs components and transform nodes selected at once.

Notes

  • Only perspective cameras need to be supported.
  • It may make sense to use a maya.cmds.draggerContext for this tool.
  • This tool should have a hotkey set up to be effective.
  • Use CTRL or ALT keys to change the default behaviour.
  • This is similar to the Ok Pushy tool.
@david-cattermole david-cattermole added help wanted maya tool A user tool inside Maya. labels May 5, 2019
@david-cattermole david-cattermole added this to the v0.3.0 milestone May 5, 2019
@david-cattermole david-cattermole modified the milestones: v0.3.0, v0.4.0 Sep 7, 2019
@david-cattermole david-cattermole modified the milestones: v0.4.0, v0.3.1 Oct 2, 2019
@david-cattermole david-cattermole modified the milestones: v0.3.1, v0.3.2 Oct 20, 2019
@david-cattermole david-cattermole modified the milestones: v0.3.2, v0.3.3 Jan 19, 2020
@david-cattermole david-cattermole modified the milestones: v0.3.3, v0.3.4 Feb 9, 2020
@david-cattermole david-cattermole modified the milestones: v0.3.4, v0.3.5 May 17, 2020
@david-cattermole david-cattermole modified the milestones: v0.3.5, v0.4.0 Jul 14, 2020
@david-cattermole david-cattermole removed this from the v0.4.0 milestone Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted maya tool A user tool inside Maya.
Projects
None yet
Development

No branches or pull requests

1 participant