Notifications
Clear all

[Closed] MentalRay compositing set up

Hey Loran, glad to help and thanks for the credits! I appreciate it

Just one thing, in your “Do it!” button, you’re not closing the Render Scene Dialog before making changes to the renderer, that will lead to the changes in Width and Height (amongst others) not sticking like I’ve said on my previous post.

Add this in the beggining of the “bt pressed” event:

on bt pressed do
	(
	--Check to see if Render Scene Dialog is open, if it is then close it before making any changes to the renderer
	local rsd = RenderSceneDialog.IsOpen()
	if rsd==true then RenderSceneDialog.Close()
.....

And this before closing the event:

.....
		actionMan.executeAction 0 "40182"  -- Views: Perspective User View
	actionMan.executeAction 0 "219"  -- Tools: Show Safeframes Toggle

	--If the Render Scene Dialog was open, then restore it after we've made our changes
	if rsd == true then RenderSceneDialog.Open()

)

Or another way to do this is to check if the Render Scene Dialog is open at our rollout open event and close it there and re-open the RSD when we close our main rollout. I guess it’s more “pretty” because we dont have the RSD flashing when we click a button, but it’s just an aesthetic aspect.

Cheers!

I will update it later with your advices. Thank you
Check it out!
http://loran-cg.blogspot.com/2010/09/compositethis-maxscript.html

Great stuff Laurent, it’s a really useful script!

Page 2 / 2