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
    • Login

    Script Request: Multiple STL file Export

    General Talk
    2
    2
    539
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Prowl
      last edited by

      So am looking for a script / plugin to

      1. Export Multiple selected resolved Hierarchy objects to STL files.
      2. Has to process Volume Builder and Mesher.
      3. export All files in one go to a selected folder.

      Select n go was my go-to for this
      https://fcstudios.gumroad.com/l/SelectNGo

      But it doesn't work properly post r21 ( I am stuck on elect n go v2 on r21 ) as it seems to ignore Volume Builder/Mesher - I've tried to speak with them but with no joy - I know they are very busy on other projects. and does a lot more than I need.

      This is specifically to export sculpted / Volume built models for 3d printing hence the STL file.

      Generally, I have 10-20 parts in a file like this and select the Topmost of each and export -

      Part1(Null)
      Volume Mesher
      Volume Builder
      object1
      object2
      object3

      Part2(Null)
      Volume Mesher
      Volume Builder
      object1
      object2
      object3

      What is the best way to go about this?

      Thanks in advance.

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @Prowl
        last edited by ferdinand

        Hello @prowl,

        Welcome to the forum and thank you for reaching out to us.

        I am not sure how your posting is meant. Are you looking for a developer or are you looking for support for developing a solution yourself? If the latter is the case, then you are posting in the wrong sub-forum. When you are indeed looking for a developer, then you are in the right forum.

        If this is a task which you could solve on your own depends on the details of what you want to achieve, but the principal logic is not that hard to realize. Assuming that you want to implement your idea in Python:

        1. Use c4d.utils.SendModelingCommand and the command identifiers for Current State to Object and Connect and Delete to collapse some geometry as you would do it manually in Cinema 4D.
        2. Use c4d.documents.SaveDocument with c4d.FORMAT_STL_EXPORT to export the output of the modelling commands.

        As lined out in the forum guidelines, we cannot design applications for users. There can be things which complicate this simple task (like for example collecting dependencies in a scene). If you do not want to take the risk of being overwhelmed by your task, you should hire a developer. In general, I would say this is a manageable task for a beginner.

        The Maxon SDK Team will be happy to answer further questions when you decide to implement this yourself. But you must provide code and specific questions related to our APIs.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • First post
          Last post