camera+images file list export

Answered

Comments

5 comments

  • Avatar
    tomasb
    Hi Oscar,

    Thanks for posting, we are happy you like our software.
    To export cameras, image lists, etc, click WORKFLOW\3.Export\Registration. You can select from various types of exports.

    Sounds like you are skilled enough to do some scripting and so on. In RC you can actually define you own export format. This holds for cameras and sparse point-clouds. For models we support only ply/obj/xyz formats. It's based on a rule expansion and default rules are defined in "calibration.xml" file, which is located in the installation folder. It should not be a problem to make an own export by observing default rules.

    In general you can create a new rule and define how would you like the system to prepare outputs, e.g.:

    this defines a "Boujou" export scheme and says the system that it to produce undistorted images with equal resolution and with compensated principal points.

    Code:
        <format mask="*.txt" desc="Boujou" writer="cvs" requiresEqualResolution="1" undistortImages="1" undistortPrincipal="1">
            <body># boujou export: text ... </body>
        </format>

    Body says how to produce boujou format file.

    You simply write what you want to have in your output file e.g.

    Code:
    # Creation date : $(dateTime)

    and the expansion system automatically substitutes variables/terms which starts with $.
    Expansion system supports functions - $ExportCameras(...) and $ExportPoints(...) and $ExportTrack(...).

    $ExportCameras( $(R00:g) $(R01:g) ... ) duplicates what is inside the brackets N times - where N is a number of cameras. Each time it sets variables like R00, R01 ...

    For example, if the scene has 3 cameras then the "$ExportCameras( $(f*2.0+10) )" will plot focal lengths of the 3 cameras. Each focal length till be multiplied by 2 and added by 10. So yes! you can do a simple arithmetic there too.

    The other expansion functions works the same way, but they prepare points, tracks, etc.
    Check the xml file, I thing you will find there export variables for all you are looking for.

    Importing UVs back will be in the next release.
    0
    Comment actions Permalink
  • Avatar
    Oscar Vergara
    awesome! thanks I totally missed that feature.
    Really nice... I'm totally excited to see where you guys are going.
    0
    Comment actions Permalink
  • Avatar
    admin
    Here is a list of export tokens >

    Camera export and file formats
    0
    Comment actions Permalink
  • Avatar
    bananajunky
    Hi tomasb,

    Sorry to tag team on this post from Oscar, but I too would like to know if you can help me export cameras alongside mesh data for import into Maya. I need to be able to bring in correct camera names into Maya as if a .fbx like agi can.

    Is this something that RC can do at present? If so please can you or another advise me on how to achieve this. I would be truly grateful.
    0
    Comment actions Permalink
  • Avatar
    Oscar Vergara
    Hi,
    I'm trying to figure out how to create a 5 digit numeral, such as 00001 using an (index+1:d) expression, even thou "d" does not do the trick.
    Any help?
    thanks
    0
    Comment actions Permalink

Please sign in to leave a comment.