floating viewer max


#1

Hello, first apologize for my English
My question is this…
Do you can create a floating viewer with maxscript or other solution?


#2

do you mean a floating point conversion from binary to decimal ?
es: 00 00 80 3f --> 1.000


#3

no, pardon my English, I have not explained well,
attempt to do this…


#4

I don’t think it’s possible in MXS and I should point out that this was a wish often asked for from '99-2002, but every time it came up the development manager shot the idea down (on what I think are reasonable grounds). However, you can find a highly limited floating viewport easter egg in the MAX Finder utility, if I recall.


#5

kinda :smiley:


(

	rollout tRO "floating viewer ;)" width:((gw.getWinSizeX())/2) height:((gw.getWinSizeY())/2)
	(
		fn setROImg =
		(
			--set custom viewport and shading settings here
			
			SetDialogBitmap  tRO (gw.getviewportDIB())
			
			OK
		)
		
		timer clock interval:500
		
		on clock tick do setROImg()
	)
	createdialog tRO bmpstyle:#bmp_stretch bitmap:(bitmap 1 1 color:orange) style:#(#style_resizing, #style_titlebar, #style_border, #style_sysmenu, #style_toolwindow)
	
)


#6

fantastic! this is exactly what I need


#7

How can I change to camera for permanent mode?


#8

What do you mean with permanent mode?

I didn’t read the code, but i assume that what is being done is capture in real time the active viewport, so the only way you can do that is modify the script to capture a camera viewport, but you’ll need to have a viewport with a camera view configured on it, and work in the other viewports.

Cheers.


#9

possible yeah but with a whole lot of annoying flickering
to avoid that you could change the active viewport-border color to the background color
as the comment(s) in the code suggest its quite simple to extend the script with custom settings

you could also switch the current viewType to persp then just set the tm thats been saved before but that would be fairly equivalent to an immovable camera not a viewport to monitor


(

	rollout tRO "floating viewer ;)" width:((gw.getWinSizeX())/2) height:((gw.getWinSizeY())/2)
	(
		local fixed_to_viewport = true	-- if set to true the same viewport is going to be displayed at all times
		
		local vpI = 0
		
		fn setROImg =
		(
			disableSceneRedraw()
			
			--set custom viewport and shading settings here
			local oldVPI = viewport.activeViewport
			
			if fixed_to_viewport == true do 
			(
				viewport.activeViewport = vpI
			)
			
			SetDialogBitmap  tRO (gw.getviewportDIB())
			
			--revert to old viewport and shading settings here
			if fixed_to_viewport == true do 
			(
				viewport.activeViewport = oldVPI
			)
			
			enableSceneRedraw()
			OK
		)
		
		timer clock interval:500
		
		on clock tick do setROImg()
		
		on tRO open do vpI = viewport.activeViewport
	)
	createdialog tRO bmpstyle:#bmp_stretch bitmap:(bitmap 1 1 color:orange) style:#(#style_resizing, #style_titlebar, #style_border, #style_sysmenu, #style_toolwindow)
	
)


#10

thank you very much


#11

Very interesting the way you used to create the new floating viewport. However, if you create a floating window, for example, the camera viewport, and maximize another viewport (for example, perspective), it will give error. :sad:
If it was possible do that then, we would have a great resource for animation. :beer:

Muito interessante a maneira que você usou para criar a nova janela. Porém, se você criar a janela flutuante, por exemplo, da vista da câmera, e maximizar uma outra vista, vai dar erro.
Se fosse possível fazer isso, então teriamos um ótimo recurso para animação.


#12

lets hope for a maxSharp in a later SP for 2011 and i might just make that work (if bobo doesnt beat me to it) :slight_smile:


#13

Is MaxSharp in 3dsMax 2012?


#14

No, pretty sure it’s not


#15

This is pretty darn cool. Except for the fact that after having it open for less than a minute, it’s managed to fill my 12GB of RAM.


#16

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.