V-Ray support for the Max 2011 ribbon

Hi,

I was wondering if V-Ray will support the new Max 2011 ribbon. It would be great being able to add VRayLights, VRayPlane, VRaySun etc. as buttons all next to each other in a ribbon tab.

Thanks in advance.

you can make your own ribbon toolbar i think

Yep, but right now you can’t add V-Ray stuff to it.

Yes you can, you just need a small macroscript to add the functions you want.

We’re building a customized ribbon here with a create and modify tab, and added vraylight, physicalcam, vrayplane, all with the macroscripts, you just run these lines of code and you’ll be able to add it to your ribbon:


macroScript VRay_Light
enabledIn:#("max", "viz", "vizr") 
            category:"VRay"
            internalCategory:"VRay"
            ButtonText:"VRay Light"
            tooltip:"Create VRay Light" 
            icon:#("PhotometricLights",4)
(
     on execute do StartObjectCreation vraylight
     on isChecked return mcrUtils.IsCreating vraylight
     on IsVisible Return isKindOf vraylight  MAXWrapper 
)

macroScript VRay_Plane
enabledIn:#("max", "viz", "vizr") 
            category:"VRay"
            internalCategory:"VRay"
            ButtonText:"VRay Plane"
            tooltip:"Create VRay Plane" 
            icon:#("Standard",10)
(
     on execute do StartObjectCreation vrayplane
     on isChecked return mcrUtils.IsCreating vrayplane
     on IsVisible Return isKindOf vrayplane  MAXWrapper 
)

macroScript VRay_cam
enabledIn:#("max", "viz", "vizr") 
            category:"VRay"
            internalCategory:"VRay"
            ButtonText:"VRay Phsysical Camera"
            tooltip:"Create VRay Physical Camera" 
            icon:#("Cameras",1)
(
     on execute do StartObjectCreation VRayPhysicalCamera 
     on isChecked return mcrUtils.IsCreating VRayPhysicalCamera 
     on IsVisible Return isKindOf VRayPhysicalCamera  MAXWrapper 
)

I just had to borrow some icons from standard’s max icon. :grin:

Regards.

Cool, thanks a lot!

but do you know a way to add ribbon items with script? using the dialog is a lot of work, and it’s impossible to copy parts of the ribbon to other computers…