Notifications
Clear all

[Closed] MAXScript Editor,Why not show Calltip?

MAXScript Editor,Why not show Calltip?

I do not know why,
but modify MAXScript.properties

“file.patterns.MAXScript”modify”file.patterns.MaxScript” “MAXScript”modify”MaxScript”
show Calltip ! OK!
but,
Syntax Color Schemes Fail!
All colors loss !!!!!!


  autocompleteword.automatic=1
  autocomplete.choose.single=0
  autocomplete.*.ignorecase=1
  autocomplete.*.start.characters=$(chars.alpha)$(chars.numeric)$_@#.
  
  api.*.ms=ms.api

I recorded a video, but I do not speak English
English is translated by google
link:
http://www.youtube.com/watch?v=5BDL2GUMX2Y

//youtu.be/5BDL2GUMX2Y

12 Replies

I have had problems with this as well, and have seen posts by some that say it works perfectly

The following gives you “autocomplete” within the current document

autocompleteword.automatic=1
autocomplete.choose.single=0
autocomplete.*.ignorecase=1

The following gives you “autocomplete” within the MS API (but not current document)

autocomplete.*.start.characters=$(chars.alpha)$(chars.numeric)$_@#.
api.*.ms=ms.api

Using both together gives me ONLY the API, regardless of where I put the lines.

If you looking the way to create *.api file you can try this fn

fn createMxsAPI filePath:(getDir #maxRoot) showInEditor:on =
(
	local mxsAPI = pathConfig.appendPath filePath "maxscript.api"
	local ss = stringstream "", apiArr = #()
	apropos "" to:ss ; seek ss 0
	while not eof ss do
	(
		theLine = readLine ss
		case of
		(
			(matchPattern theLine pattern:"*#struct:*"): 
			(
				theWord = (filterString theLine " ")[1] ; theLine = readLine ss
				while matchPattern theLine pattern:"*public,*" do
				(
					append apiArr (theWord+"."+(trimLeft (filterString theLine ":")[1] " "))
					theLine = readLine ss
				)				
			)
			(matchPattern theLine pattern:"*(const *"): append apiArr ((filterString theLine " ")[1])
		)
	)
	(dotnetClass "System.IO.File").WriteAllLines mxsAPI apiArr ; free apiArr
	if showInEditor do edit mxsAPI
)
createMxsAPI()

I was hoping for a way to use Auto-complete for both the API and the current document at the same time.

is it possible to show function arguments similar way in maxscript editor?
or how can i execute some script to show such a handmade tooltip with shortcut while in editor?

I am also very interested int his

I finally made it without any external dependencies
That was tough, but I’ve learned a lot since then.

Any plans to share or maybe even migrate that to say VSCode extension?

Currently it is a mix of console application running by a command shortcut and a hidden auxiliary rollout that somehow responds to app’s messages.
Don’t know if there’s a better way of executing arbitrary maxscript by a shortcut. Anyway, I’ll try to debug and refactor it first.

maxscript functions with args

is it possible to get current document function too (auto update), like in sublime or visual studio ?

Page 1 / 2