Adverti horiz upsell

nodediff 0.1.1

Node diff highligher for ma(Maya Ascii) files.

License
Button download
19 Downloads

History

Created:03/28/2015
Last Modified:05/05/2015
File Size: 22.1 KB

Keywords

diff, nodeType

nodediff

This is command line tool.
Require two *.ma files arugument.

    $ nodediff a.ma b.ma

This tool parse node name and node type and hierarchy. and print different between two ".ma" files. 

How to install

  1. download python file.

  2. Change mode.

    $ chmod 755 nodediff
  3. Move to your bin path.

    $ mv nodediff /your/bin/path

How to use

  1. Print nodename and nodetype diff.

    $ nodediff testdata/diff-a.ma testdata/diff-b.ma
      + aa:group1(transform)
      +     aa:nurbsPlane2(transform)
      +         aa:nurbsPlaneShape2(nurbsSurface)
      + aa:group3(transform)
      +     aa:group2(transform)
      +         aa:pPyramid1(transform)
      +             aa:pPyramidShape1(mesh)
      + aa:makeNurbPlane1(makeNurbPlane)
      + aa:nurbsPlane1(transform)
      +     aa:nurbsPlaneShape1(nurbsSurface)
      + aa:pPipe1(transform)
      +     aa:pPipeShape1(mesh)
      + aa:polyPipe1(polyPipe)
      + aa:polyPyramid1(polyPyramid)
        defaultLayer(displayLayer)
        defaultRenderLayer(renderLayer)
        front(transform)
            frontShape(camera)
        group1(transform)
      +     nurbsHogePlane2(transform)
      +         nurbsHogePlaneShape2(nurbsSurface)
      -     nurbsPlane2(transform)
      -         nurbsPlaneShape2(nurbsSurface)
        group3(transform)
            group2(transform)
                pPyramid1(transform)
                    pPyramidShape1(mesh)
      + group5(transform)
      +     group4(transform)
      +         group2(transform)
      +             pPyramid1(transform)
      +                 pPyramidShape1(mesh)
        layerManager(displayLayerManager)
        lightLinker1(lightLinker)
      + locator1(transform)
      +     locatorShape1(locator)
        makeNurbPlane1(makeNurbPlane)
      - makeNurbSphere1(makeNurbSphere)
        nurbsPlane1(transform)
            nurbsPlaneShape1(nurbsSurface)
      - nurbsSphere1(transform)
      -     nurbsSphereShape1(nurbsSurface)
        pPipe1(transform)
            pPipeShape1(mesh)
        persp(transform)
            perspShape(camera)
        polyPipe1(polyPipe)
        polyPyramid1(polyPyramid)
        renderLayerManager(renderLayerManager)
        sceneConfigurationScriptNode(script)
        side(transform)
            sideShape(camera)
        top(transform)
            topShape(camera)
        uiConfigurationScriptNode(script)
    
  2. Print diff line only.

    $ nodediff -d testdata/diff-a.ma testdata/diff-b.ma
    $ nodediff --diffonly testdata/diff-a.ma testdata/diff-b.ma
      + aa:group1(transform)
      +     aa:nurbsPlane2(transform)
      +         aa:nurbsPlaneShape2(nurbsSurface)
      + aa:group3(transform)
      +     aa:group2(transform)
      +         aa:pPyramid1(transform)
      +             aa:pPyramidShape1(mesh)
      + aa:makeNurbPlane1(makeNurbPlane)
      + aa:nurbsPlane1(transform)
      +     aa:nurbsPlaneShape1(nurbsSurface)
      + aa:pPipe1(transform)
      +     aa:pPipeShape1(mesh)
      + aa:polyPipe1(polyPipe)
      + aa:polyPyramid1(polyPyramid)
      +     nurbsHogePlane2(transform)
      +         nurbsHogePlaneShape2(nurbsSurface)
      -     nurbsPlane2(transform)
      -         nurbsPlaneShape2(nurbsSurface)
      + group5(transform)
      +     group4(transform)
      +         group2(transform)
      +             pPyramid1(transform)
      +                 pPyramidShape1(mesh)
      + locator1(transform)
      +     locatorShape1(locator)
      - makeNurbSphere1(makeNurbSphere)
      - nurbsSphere1(transform)
      -     nurbsSphereShape1(nurbsSurface)
    
  3. Print transform diff.

    $ nodediff -w transform testdata/diff-a.ma testdata/diff-b.ma
    $ nodediff --whitelist transform testdata/diff-a.ma testdata/diff-b.ma
      + aa:group1(transform)
      +     aa:nurbsPlane2(transform)
      + aa:group3(transform)
      +     aa:group2(transform)
      +         aa:pPyramid1(transform)
      + aa:nurbsPlane1(transform)
      + aa:pPipe1(transform)
        front(transform)
        group1(transform)
      +     nurbsHogePlane2(transform)
      -     nurbsPlane2(transform)
        group3(transform)
            group2(transform)
                pPyramid1(transform)
      + group5(transform)
      +     group4(transform)
      +         group2(transform)
      +             pPyramid1(transform)
      + locator1(transform)
        nurbsPlane1(transform)
      - nurbsSphere1(transform)
        pPipe1(transform)
        persp(transform)
        side(transform)
        top(transform)
    
  4. Print transfrom and mesh diff.

    $ nodediff -w transform,mesh testdata/diff-a.ma testdata/diff-b.ma
    $ nodediff --whitelist transform,mesh testdata/diff-a.ma testdata/diff-b.ma
      + aa:group1(transform)
      +     aa:nurbsPlane2(transform)
      + aa:group3(transform)
      +     aa:group2(transform)
      +         aa:pPyramid1(transform)
      +             aa:pPyramidShape1(mesh)
      + aa:nurbsPlane1(transform)
      + aa:pPipe1(transform)
      +     aa:pPipeShape1(mesh)
        front(transform)
        group1(transform)
      +     nurbsHogePlane2(transform)
      -     nurbsPlane2(transform)
        group3(transform)
            group2(transform)
                pPyramid1(transform)
                    pPyramidShape1(mesh)
      + group5(transform)
      +     group4(transform)
      +         group2(transform)
      +             pPyramid1(transform)
      +                 pPyramidShape1(mesh)
      + locator1(transform)
        nurbsPlane1(transform)
      - nurbsSphere1(transform)
        pPipe1(transform)
            pPipeShape1(mesh)
        persp(transform)
        side(transform)
        top(transform)
    
  5. Print transfrom and mesh diff and diffonly.

    $ nodediff -d -w transform,mesh testdata/diff-a.ma testdata/diff-b.ma
    $ nodediff --diffonly --whitelist transform,mesh testdata/diff-a.ma testdata/diff-b.ma
      + aa:group1(transform)
      +     aa:nurbsPlane2(transform)
      + aa:group3(transform)
      +     aa:group2(transform)
      +         aa:pPyramid1(transform)
      +             aa:pPyramidShape1(mesh)
      + aa:nurbsPlane1(transform)
      + aa:pPipe1(transform)
      +     aa:pPipeShape1(mesh)
      +     nurbsHogePlane2(transform)
      -     nurbsPlane2(transform)
      + group5(transform)
      +     group4(transform)
      +         group2(transform)
      +             pPyramid1(transform)
      +                 pPyramidShape1(mesh)
      + locator1(transform)
      - nurbsSphere1(transform)

 



Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.