News:

 

Topic: Instructions.txt  (Read 8476 times)

0 Members and 3 Guests are viewing this topic.

  • No avatar
  • Posts: 976
  • Polygon
December 20, 2017, 12:15:37 am
Up to now I've been using wscript.exe that launches a .vbs script which acts as a buffer for launching a .cmd (.bat) file. The latter contains the path to executable along with arguments. IIRC launching the .cmd file directly caused some problems.

But this solution is too convoluted, and that is why I'd like to simplify it and run Python with multiple arguments directly from Launch App(*).

  • No avatar
  • Posts: 3760
  • Developer
  • Administrator
  • Polygon

  • No avatar
  • Posts: 976
  • Polygon
December 20, 2017, 01:36:22 am
Okay, the file not found error is gone, but now NVil treats Hython.exe and the .py script, which I want to pass as an argument to, as two separate executables. It launches both as separate applications. First Houdini's Python interpreter (Hython) shows up, and then Windows asks me which program should be used to launch my .py file.
« Last Edit: December 20, 2017, 01:51:48 am by rubberDuck »

  • No avatar
  • Posts: 976
  • Polygon
December 20, 2017, 01:38:17 am
That sounds too complicated.

Try this
http://www.digitalfossils.com/Download/NVil-Sep-27-16.rar

Instead of sending window message, you can send a text file "NVil Message_In.txt" with this content "Execute External Instruction File" to "%APPDATA%\DigitalFossils\NVil". Make sure 3DC Applink is enabled.
BTW, NVil Message_In.txt works really well. :)
« Last Edit: December 20, 2017, 01:40:07 am by rubberDuck »

  • No avatar
  • Posts: 3760
  • Developer
  • Administrator
  • Polygon
December 20, 2017, 02:03:47 am
Okay, the file not found error is gone, but now NVil treats Hython.exe and the .py script, which I want to pass as an argument to, as two separate executables. It launches both as separate applications. First Houdini's Python interpreter (Hython) shows up, and then Windows asks me which program should be used to launch my .py file.


Try any of these

"C:\Program Files\Side Effects Software\Houdini 16.5\bin\hython.exe"; "c:\users\myprofile\documents\houdini16.5\python27libs\myscript.py"

C:\Program Files\Side Effects Software\Houdini 16.5\bin\hython.exe; c:\users\myprofile\documents\houdini16.5\python27libs\myscript.py

  • No avatar
  • Posts: 976
  • Polygon
December 20, 2017, 02:13:25 am
Okay, the file not found error is gone, but now NVil treats Hython.exe and the .py script, which I want to pass as an argument to, as two separate executables. It launches both as separate applications. First Houdini's Python interpreter (Hython) shows up, and then Windows asks me which program should be used to launch my .py file.
Try any of these
"C:\Program Files\Side Effects Software\Houdini 16.5\bin\hython.exe"; "c:\users\myprofile\documents\houdini16.5\python27libs\myscript.py"
(...)
Semicolon did the trick. Thanks!