Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Rio on July 10, 2024, 10:59:01 am

Title: Refreshing master style resets parameters
Post by: Rio on July 10, 2024, 10:59:01 am
Is this intended behaviour? I have a scene with over 150 Railclone objects referenced back to 6 master objects. There are up to 6 parameters on these so they can reproduce the variations in the scene, but be easily edited by the master, this is working really well, but one frustration is that if I refresh the reference, all parameters are reset to their default values (that of the master). I can see why this would be useful when first setting the master reference, but it's very frustrating having to around and re-do parameters if I need to tweak something in the master style.
Title: Re: Refreshing master style resets parameters
Post by: Rio on July 10, 2024, 11:12:33 am
Maybe I got that wrong actually. To scare to test now in case I have to do them all again, but I'll save it in a bit and check again. Doesn't seem to have affected the hidden objects in the scene with the same reference
Title: Re: Refreshing master style resets parameters
Post by: iToo on July 10, 2024, 12:25:06 pm
For linked styles, RaiClone uses a smart way to handle the parameters:

- Initially, all slaves use the parameter's value of the master object.
- If you modify manually a parameter in the slave, then this parameter becomes local, and value is not inherited from the master anymore.

To know what parameters are modified, RC stores a flag for each object and parameter.
These flags are not accessible from the UI, but you can check them using Maxscript: $.pamodifed (a bool array). Use $.paname, to identify what parameter is each one.

Title: Re: Refreshing master style resets parameters
Post by: Rio on August 06, 2024, 10:39:48 am
Thanks, it was more that the modified parameters weren't retaining their values, when I refreshed the master style. This seemed to be the case for all visible 'slaves' at that time.