State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:308781|
Problem summary
Reading Alembic / .abc files into Nuke Pythonically doesn't populate knobs unless the user interacts with the GUI or Renders a frame
Customer reported version
nuke.10.5v1
Customer reported platform
centos6
Steps to reproduce
1) Open Nuke
2) Download the attached .abc file
3) Run the below script, changing the first path to the path of the .abc file:
geo = nuke.createNode('ReadGeo2', inpanel=False)
geo['file'].setValue('<path/to/alembic>/simplecube.abc')
render = nuke.createNode('ScanlineRender', inpanel=False)
cam = nuke.createNode('Camera2', inpanel=False)
cam['translate'].setValue([50, 20,18])
write = nuke.createNode('Write', inpanel=False)
write['file'].fromUserText('/null.null')
render.setInput(2, cam)
render.setInput(1, geo)
write.setInput(0, render)
print geo['scene_view'].getAllItems()
nuke.execute(write, 1, 1)
print geo['scene_view'].getAllItems()
The first print geo will return ---------, after rendering the comp, the second print geo will print the mesh correctlyWe're sorry to hear that
Please tell us why