Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Executing an external application

    Scheduled Pinned Locked Moved SDK Help
    8 Posts 0 Posters 702 Views
    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.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 11/03/2005 at 03:32, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.5 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I'm using GeExecuteProgram to execute an external application. But I want the application to just open and not load any document. But it seems the GeExecuteProgram requires a filename reference. Is there any way to simply open the external application?

      Rui Batista

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 11/03/2005 at 05:25, xxxxxxxx wrote:

        Have you tried setting it to NULL?

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 11/03/2005 at 05:32, xxxxxxxx wrote:

          I get a

          (5) Incompatible values... NIL/OBJECT

          error 😞

          Even so, I found a workaround. I created an empty file to load. Not perfect, but works.

          Rui Batista

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 11/03/2005 at 09:08, xxxxxxxx wrote:

            That's not a workaround - that is how it should be done. 🙂

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 11/03/2005 at 09:23, xxxxxxxx wrote:

              But imagine I want to start an application that doesn't open files. Imagine, lets say, a clock application. This type of application only shows a windows and doesn't deal with any files. It doesn't even has a file type associated.
              How can I cann such an application if I must provide a file? 😉

              Rui Batista

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 11/03/2005 at 09:27, xxxxxxxx wrote:

                No, that´s a workaround. Pass an empty filename object instead. That works.

                var file = new(Filename);
                GeExecuteProgram(fn,file);

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 11/03/2005 at 09:39, xxxxxxxx wrote:

                  Oh, gotcha!! 🙂
                  Thank you.

                  Rui Batista

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 11/03/2005 at 10:22, xxxxxxxx wrote:

                    Oh, I misinterpreted as an empty Filename, not an actual empty file! Sorry, eyes were still blurry, no coffee, my dog ate it and ... 😉

                    Yes, you use an empty Filename object.

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