pythonpython-2.7nukealembic-format

Rename ReadGeo nodes by Alembic SceneGraph


I have 7 shots with 2 or 3 Alembic files in each and around 20 geometries per Alembic.

As I need to export my complete 3D scene in a new Alembic, I need to rename all of the ReadGeo nodes to be easily readable in other software (like Maya).

For this, I want to give the geometry name from the Alembic Scenegraph to the ReadGeo but I don't see how to found Geo name with Python. I have started with this code:

def AlembicRename():
    for s in nuke.allNodes("ReadGeo2"):
        GeoName = # don't know how to find this
        s['name'].setValue(GeoName)

AlembicRename()

Any idea how I can find the Geometry Name?

Thank you.


Solution

  • Solved with

    myReadGeoNode['scene_view'].getSelectedItems()