adding a string parameter and turning on “Use Menu”, and going over to Menu Script tab, putting the command uls -d -p <some_path>, it truncates the list, so half of the directories is missing, and when i choose one from the menu it puts another ones name in the string field.
Menu scripts require value/name pairs. The first part is the actual value, the second is the display name. That's why your list is half as long and has the wrong values.
If your search result is something like this “ folder1 folder2 folder3 folder4” then your actual menu will have 2 items, folder2 and folder4. When you choose folder2 the value returned will be folder1, ect.
If you look in the help docs for the Operator Type Properties window there should be an example of creating one from a single list. It should just be something like a For loop over the search result that adds the current element twice to a new string.
Graham Thompson, Technical Artist @ Rockstar Games
Probably my knowledge is too shallow , but if i type a simple example:
set num = 1234 echo $num
nothing happens, and the $num is colored red, as it is in a bad syntax
of course this works in textport.
Also tried the example in the docs
here = `execute(“oppwf”)` result = “” for index = 0 to `opninputs($here)` result = $result + “ ” + `opfullpath($here + “../” + opinput($here, $index))` + “ ” + `opinput($here, $index)` end echo $result
which will give bunch of red text in it. I tried this on null which had another null connected to it not working either. I don't understand