I'm trying to write a simple python script but I got stuck. Bake Texture node is giving me an error but I couldn't understand why. I'm on Ubuntu 16.04, Houdini 16.
Here's the relevant script part(it's a file sop):
FileNameLowRes = /path/to/obj/file_low FileNameHighRes = /path/to/obj/file_high LowResOBJ = hou.parm('/obj/low_res_obj/low_res_obj/file') LowResOBJ.set(FileNameLowRes) HighResOBJ = hou.parm('/obj/high_res_obj/high_res_obj/file') HighResOBJ.set(FileNameLowRes) hou.parm('/out/baketexture/execute').pressButton()
Error saving geometry for: /obj/low_res_obj/low_res_obj
The file exists. Checked that first. No issues with paths. Everything set correctly on Bake Texture node. I find this error message confusing since I'm not trying to save anything. Script works from GUI, but not from Hython. Any suggestions? Also am I missing a step with objects? I tried cooking them after importing but nothing changed.
Edit: Updated question
Edit 2: Problem solved. Turns out, Houdini doesn't like another dot in the file, my filename was, myfile.myext.obj, I changed it to myfile.obj and it works now.