Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Register
    • Login
    1. Maxon Developers Forum
    2. OblivionDawn
    O
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    OblivionDawn

    @OblivionDawn

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    OblivionDawn Unfollow Follow

    Latest posts made by OblivionDawn

    • RE: "Frame Selected Elements" command not working when running script through c4dpy?

      @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.

      posted in Cinema 4D SDK
      O
      OblivionDawn
    • "Frame Selected Elements" command not working when running script through c4dpy?

      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?

      posted in Cinema 4D SDK
      O
      OblivionDawn