@mp5gosu, thanks for that workaround, I'll give it a shot and let you know if I have any questions.
@ferdinand, interesting, thanks for looking into this issue and I look forward to hearing what you come up with.
Hi, I'm a Cinema 4D veteran but I'm very new to Python and coding in general.
I've made a little script that imports an .obj file into a specific scene, frames the geometry, and then renders it. When I run it in script manager it works great. However, when I run it via c4dpy/commandline, everything works fine except for the "Frame Selected Elements" command.
c4d.CallCommand(13038) # Frame Selected Elements
It just seems to ignore that command and then goes on to render the .obj at whatever size it was imported as.
As I said, I'm still new to programming/scripting, but I'm assuming that since there's no GUI/viewport when running a script through c4dpy, the Frame Selected Elements command simply isn't available. I could be completely wrong though.
Does anyone know if there's a workaround for this, or if I'm simply tackling the problem the wrong way?