Material to Texture Node

G’day all,
I have a materials node setup which uses some light group trickery and creates a greyscale result. I want use that material in a texture node setup to create a dynamic texture for a displace modifier.
Is this possible?
How?

Thanks, Istvan.