Itoo Software Forum

Author Topic: Refreshing master style resets parameters  (Read 11821 times)

Rio

  • Jr. Member
  • **
  • Posts: 91
Refreshing master style resets parameters
« 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.

Rio

  • Jr. Member
  • **
  • Posts: 91
Re: Refreshing master style resets parameters
« Reply #1 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
« Last Edit: July 10, 2024, 11:15:01 am by Rio »

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4673
    • iToo Software
Re: Refreshing master style resets parameters
« Reply #2 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.

Carlos Quintero
iToo Software

Rio

  • Jr. Member
  • **
  • Posts: 91
Re: Refreshing master style resets parameters
« Reply #3 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.