Trace script syntax issue and undefined method
I ran into a few bugs in running the following trace on aevaCMB 2.4.0: NormalSelectFemur.py
The file names are windows are read as escape codes without adding a second "" or an r in front of the string.
# Setup SMTK operation and parameters op = opMgr.createOperation('smtk::session::aeva::Import') configureAttribute(op.parameters(), { 'resources': resources, 'associations': [ ], 'items': [ { 'path': 'filename', 'value': 'C:\Users\doherts\Documents\AEVA\KneeDemo\TibiaCoarse.vtk' }, ], }) res = op.operate()
After fixing this, I get the following traceback:
Traceback (most recent call last): File "C:\Users\doherts\Documents\AEVA\KneeDemo\NormalSelectFemur.py", line 12, in <module> tibiaCoarsevtk = SMTKimporterforLegacyVTKFileintosmtksessionaevaResource(registrationName='TibiaCoarse.vtk', FileName='C:\\Users\\doherts\\Documents\\AEVA\\KneeDemo\\TibiaCoarse.vtk') NameError: name 'SMTKimporterforLegacyVTKFileintosmtksessionaevaResource' is not defined