upstream_item.inputResultData[0][0]
__PDG_DIR__/geo/xxx.bgeo.sc
Now I just replace the “__PDG_DIR__” with the absolute path, is there a better way to get the input result file? am I doing something wrong here?
Thank you.
upstream_item.inputResultData[0][0]
__PDG_DIR__/geo/xxx.bgeo.sc
self.scheduler.localizePath(upstream_item.inputResultData[0][0])
self.scheduler
currently seems to return _pdg.PySchedulerType object
.localizePath()
.__PDG_DIR__
so that i could use it with hou.imageResolution()
.pdg.File
-> localizePath
method:parent = upstream_items[0] # parent work_item with output file img = str(parent.inputResultData[0]) # get the input file/path -> __PDG_DIR__/path/to/file f = pdg.File() # create new File obejct f.path = img # set (store) the path value loc = f.localizePath(self.scheduler) # convert the stored path value
loc
is now expanded galagastself.scheduler
currently seems to return_pdg.PySchedulerType object
.
This object doesn't have any method calledlocalizePath()
.
localizePath()
, it won't show up in the auto-completion but it's there.
chrisgreboh my! haha indeed it does work! thanks!
self.scheduler should have localizePath(), it won't show up in the auto-completion but it's there.
PySchedulerType
docs, but found no localizePath()
method, thus i assumed that it didnt have it.