david-cattermole / mayaMatchMoveSolver

A Bundle Adjustment solver for MatchMove related tasks.
https://david-cattermole.github.io/mayaMatchMoveSolver/
Other
101 stars 29 forks source link

Copy/Paste Camera on Windows - Pasting into 3DEqualizer adds backslash before file name #162

Closed david-cattermole closed 3 years ago

david-cattermole commented 3 years ago

Problem

When pasting a camera from Maya to 3DEqualizer on Windows, the file path contains a backslash just before the file name. This leads to 3DEqualizer not finding the file. The user must manually replace "\" with "/". This is not an ideal workflow.

Expected behavior: The file path pasted into 3DEqualizer should load a valid image (sequence).

Actual behavior: Valid image sequences are not correctly creating valid Windows file paths. The forward/backslashes are not consistent and this is stopping 3DEqualizer from getting the correct path.

Steps to Reproduce

  1. Open Maya scene with camera and (valid) image plane.
  2. Select camera node, run shelf tool "mmSolver > IO > Copy/Paste Camera"
  3. Open 3DEqualizer, select camera, right-click and run "Paste Camera (mmSolver)...", a window will open
  4. Press "Paste" button, the image sequence should be visible in the 3DEqualizer window.

image

Software Versions

david-cattermole commented 3 years ago

This is fixed on the develop branch and will be included in v0.3.7.

The 'paste camera' script for 3DE was also modified and this can be released before v0.3.7.

During tests however, the backward or forward slash did not seem to make any difference to 3DE loading the file, so this bug appears to be cosmetic only.

However, sometimes 3DE does not load the path into the viewer, even though the metadata has clearly been loaded into the Attribute Editor. This bug seems to be unrelated to the cosmetic change but should be tested and reported upstream to Science D Visions.