Hi All,
I am registering two input parameters to record the values of the sliders (custom attributes) in the component. everything works fine and I just need to hide those parameters so user can only interact with sliders. the method
pManager.HideParameter(index);
Override Write() and Read() to serialize and deserialize your data. Any other automatic behaviour that the parameters do, you will have to replace them yourself if needed. As far as I know you can’t register a parameter and not have it appear in the capsule.
Thanks a lot
It was simpler than what I expected ,
Just one more thing , the Read() method gets called before solution update or there is mechanism to call it manually?
It is called automatically and shouldn’t be used manually in most cases.
Though I’d recommend SetValue/GetValue rather than overriding Read/Write. The latter is more error-prone.
I implemented the SetValue and GetValue methods. They only save the values in the component, after I saved the GH file and re-open it the GetValue did not work. so I think I go with Dani’s solution.
Thanks