Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

How to call a script a pass arguments using the command line

$
0
0

Hello,

 

I am trying to automate some processes in DAZ, and for this to work I need to be able to call the script and pass it some arguments from the command line (windows)

var oArguments = "Message from user"
MessageBox.information( oArguments, qsTr("MyScript"), qsTr("&OK") );

I know this should involve using App.scriptArgs, so I tried something like this:

var oArguments = parseScriptArgs(App.scriptArgs);	
MessageBox.information( oArguments, qsTr("MyScript"), qsTr("&OK") );

I then call it from the command line using the script name, and pass my arguments. Still can't get it to work, the script runs without errors but the argument I type in the CMD is not being passed to the variable oArguments.

I would really appreciate the help here.


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>