MoI discussion forum
MoI discussion forum

Full Version: scripting - help dealing with special chars in file path

Show messages: All  1-3  4-7

From: passant
27 Feb 2020   [#4] In reply to [#1]
Hey! This may be the false thread and a noob question, but I'm having a really hard time finding out how to achieve a string Input into an UI-Panel inside of MoI.


What is the pendant for "numericinput" when I want to get a string?
I'd really appreciate any help. I am trying to build the script you ave already with automatic STEP to OBJ from a path.
Works fine without UI, but unfortunately not with one at the moment...

Huge thanks already!

Pascal

PS:
I know the numeric part in a .htm as of using:

...
...
<input id="filePath" class="numericinput" default="Path" style="persist:true;">

From: Michael Gibson
27 Feb 2020   [#5] In reply to [#4]
Hi passant, which version of MoI are you using?

For a numeric input, using <input class="numericinput" is what was used by v2 and earlier. It's still supported but the newer way is to use a <moi:NumericInput/>

There is also a control for a string input. The old way is <input class="textinput"> the v3+ way is <moi:TextInput/>

- Michael
From: passant
3 Mar 2020   [#6] In reply to [#5]
Hey Michael,

I am in fact using v4, I just found a few scripts online and learned from them,
but used the old way apparently, thanks for clearing that up!

I'll use the TextInput, and will come back here for further questions, if it's okay!

Thank you :)

- Pascal
From: Michael Gibson
3 Mar 2020   [#7] In reply to [#6]
Hi Pascal, you're welcome!

> I'll use the TextInput, and will come back here for further questions, if it's okay!

Certainly!

- Michael

Show messages: All  1-3  4-7