I was wondering if it'd be possible to get the newly created object of an imported volume file.
Basically, I import a volume file with the import_volume() method, which returns the context that contains the volume file for some reason, while I was expecting to get the volume file object instead so that I can rename it and set some of its attributes.
Any idea on how I could get the volume file object?
In the meantime, I was also wondering why we need to use the IOHelpers API - ix.api.IOHelpers.import_volume() - while we can simply do ix.reference_file() for importing a reference file. I tried importing a volume file with ix.import_volume() but got an argument error.
- Code: Select all
TypeError: import_volume() takes exactly 1 argument (2 given)
Thanks,
Jeremy