Closed natowi closed 5 years ago
because the exe does only take positional arguments (no --paramName) https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification/blob/master/src.cmd/Main.cpp#L24
u can have a simple python executable script named alicevision_msimplify
that takes those arguments and makes the proper call to the exe without the parameter names
Thank you, I will give this a try. Could you provide a simple example or point me to one? That would be a huge help, am new to python ;)
Actually I don't know how python works on windows, if you can call the script directly like in linux.
You can also simply create a batch script file that remaps the input parameters properly for the exe to launch:
https://stackoverflow.com/a/26702/1107548
Your alicevision_msimplify
will be something like
alicevision_msimplify %2 %4
where %X is the parameter in position X, you want to skip the odd numbers as they are the --paramName
, just reorder the others according to the exe.
No, just change in your node description.
class MeshDecimate(desc.CommandLineNode):
commandLine = 'alicevision_msimplify {inputValue} {outputValue} {factorValue}' ### HERE: change the command line
inputs = [
desc.File(
name='input',
...)
desc.FloatParam(
name='factor',
...
...
Thank you, I have learned a lot and it now works. https://gist.github.com/natowi/b42329c8104e88edc4357c9c1bd0a94d
Describe the problem I tried to create a new node for https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification The problem is, that the exe does not use options for input/output and parameters, the expected cli input is:
simplify.exe c:\dir\in.obj c:\dir\out.obj 0.2
When I run my node I get the following error: File --input not found!
Is it possible to pass only the paths and parameters from the node to the cli?
Log
How to reproduce OS: Win10 latest Meshroom (not compiled), pre-compiled alicevision+plugins
.py file to place in meshroom\nodes\aliceVision https://gist.github.com/natowi/b42329c8104e88edc4357c9c1bd0a94d
.exe file to place in aliceVision\bin bin.Windows (rename from simplify.exe to alicevision_msimplify.exe)
.bat to place in Meshroom folder to start the gui