Can I add material parameters to the one created with direct shape?

Can I add material parameters to the one created with direct shape?
I want to change the material of the direct shape from the created material parameter.
Thank you very mach.

%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF|690x443

image

Try to use this node in springs packages to create your solids as it offers input for material.