How to update rollout Spinner based on the object parameters

Hello Guys, I want to ask for some help from the community here,

I’m trying to do some advanced scripting on max but I don’t seem to find the right way to achieve what i would like to.

here is the deal, I have a rollout that replicates some material parameters, (rotation) when I change the spinner values within the rollout they update/reflect in the material editor (rotation), but I’m trying to update/sync my rollout spinner when changes are made into the material editor parameters (rotation) and I cannot get it to work.

I found the functionality

  • when parameters (material) change do

but unfortunately, it returns any change made to any of the material parameters instead of the specific one I need,

I hope someone can point me in the right direction. 

Thanks to everyone that look into this Laughing