Hey guys,
I have a situation where I just can’t find a solution and hope to find a hint. I am not asking you for doing the work for me, just point me in the right direction so I have a chance to get the information I need to solve my problem. After hours of trying and “googling” I am just 
The setup and target:
I have a sphere with a VRay Material on it and a VRay Environment Fog. The material is fully transparent, so only the fog gets render. So far it works great. The surface and the volume shader are applied to a sphere. I need to control the color and the density of the fog dependent on the distance from the sphere center point. So basically I need a controlable ramp from the center to the surface of the sphere.
The problem:
In 3DS Max the solution would be very easy: Take a gradient ramp and set it to “object space” and have fun. But I can’t find something like this in Maya. There is only a regular ramp (2D). I thought about taking object x, y, z from samplerInfo Node but can’t figure out a way how to apply those. The reason why I need the ramp is so the color and density can be fine controlled on the outer parts. I need several layers without using multiple spheres with multiple environment fogs.
Thank you very much in advance!