ScriptSpot

Forum topic · General Scripting

Intern "scripts"

By conjow · 2014-11-19

Description

Hi!

i`ve got a question for you :)
Is it possible to access the code of some built-in functions of Max?
For example I want to change the "camera view", that shows up by hitting the key "c".
It`s way to small and I can`t read the whole camera names.
I want to make an own script with a few more functions, but on the base of the built-in "script".
Anyone knows if this is possible?

Greetings

Comments (1)

mkcms · 2014-11-19

I don't know if that's possible, but this piece of code will open similar window which is resizable:


try destroydialog scenecams catch()
rollout scenecams "Select camera"
(
	listbox scenecameras ""
	
	on scenecams open do
	(
		scenecameras.items = for c in cameras where classof c != targetobject \
							collect c.name
	)

	on scenecameras doubleclicked index do
	(
		viewport.setcamera(getnodebyname scenecameras.items[index])
		destroydialog scenecams
	)
	
	on scenecams resized sz do
	(
		scenecameras.width = scenecams.width-20
	)
	
)
createdialog scenecams  lockwidth:false \
						style:#(#style_titlebar, #style_border, \
								#style_sysmenu, #style_resizing)