Automatically update material by

Thanks, it works fine! The question is resolved!