Itoo Software Forum

Author Topic: Upgrading Boolean Parameter to Selector  (Read 239 times)

Alex.S

  • Full Member
  • ***
  • Posts: 136
Upgrading Boolean Parameter to Selector
« on: June 17, 2022, 11:30:24 AM »
So in one of my railclone profiles I have upgraded a boolean parameter to selector option to make my profile easier to use (and added extra options actually).

If I create a new railclone object with this profile it works correctly and I have a drop down box, however if I re-apply the profile to an existing profile (in the same scene) the option does not get upgraded to a selector and remains a boolean tick box. If I edit the profile and change the drop down option to Selector, it has the correct selector options however.

Is this something others can reproduce?

(rc 5.2.2 - guess i should grab the latest patch but i didn't see a note for this)

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2547
Re: Upgrading Boolean Parameter to Selector
« Reply #1 on: June 17, 2022, 03:04:06 PM »
Hi,

Could you let us know more detail, I don't 100% understand what you mean by " if I re-apply the profile to an existing profile". We tried using the Style > Copy to command but that appears to work correctly on our side.

Cheers,

Paul
Paul Roberts
iToo Software

Alex.S

  • Full Member
  • ***
  • Posts: 136
Re: Upgrading Boolean Parameter to Selector
« Reply #2 on: June 17, 2022, 03:09:23 PM »
Open library, reapply the same profile to load changes from external max file profile which had been updated.

patype
  • doesn't get changed from 4 to 5, i think i can fix it via script in the short term.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2547
Re: Upgrading Boolean Parameter to Selector
« Reply #3 on: June 21, 2022, 04:08:40 PM »
Hi Alex,

Thanks for the extra information. I'm trying here and it seems to be working as expected. Are you saying that the issue is upgrading an RC object that was created in RC4 with a boolean numeric parameter, to the same preset but with the numeric parameter changed to Selector and saved in RC5?

Thanks,
Paul
Paul Roberts
iToo Software

Alex.S

  • Full Member
  • ***
  • Posts: 136
Re: Upgrading Boolean Parameter to Selector
« Reply #4 on: June 21, 2022, 05:41:46 PM »
I had an existing RC5 profile, with a boolean param.

I had a separate scene using this RC profile with a bunch of objects using that profile from my library.

I updated the profile boolean param to be a selector with multiple options.

I updated the objects in the separate scene by re-apply the profile onto those objects form the library. The updated parameter remained a boolean until I manually changed the objects patype
  • value

Alex.S

  • Full Member
  • ***
  • Posts: 136
Re: Upgrading Boolean Parameter to Selector
« Reply #5 on: June 21, 2022, 05:48:53 PM »
Side point that if you have 100 objects using a profile, and you re-apply a profile to one of those objects they all get updated. However, if you disable all apart from the object you are using, and then re-enable them later, the process is hugely quicker.

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3960
    • iToo Software
Re: Upgrading Boolean Parameter to Selector
« Reply #6 on: June 22, 2022, 10:33:46 AM »
The process to overwrite parameters is a bit complex, and depends of the 'Retain Value Mode' (a selector included in the parameter).
This behaviour is used both for the Library, and for 'Copy Style' operations:

- Local: the value of the parameter (and its type) is preserved, and never overwritten.
- Global: parameter is always overwritten.
- Auto: if parameter has been modified from its default value, it's preserved (as Local mode). If not, overwritten (as Global mode).

We use this procedure as a smart way to preserve values of parameters, which have been modified by the user.

In this case, if you want to overwrite always a specific parameter, just set 'Retain Value Mode' to Global (in the model stored in Library).

Quote
Side point that if you have 100 objects using a profile, and you re-apply a profile to one of those objects they all get updated. However, if you disable all apart from the object you are using, and then re-enable them later, the process is hugely quicker.

Ok, we'll check it. Probably the object is updated multiple times, when their parameters are overwritten by the library item. I guess that may be optimized.

Carlos Quintero
iToo Software

Alex.S

  • Full Member
  • ***
  • Posts: 136
Re: Upgrading Boolean Parameter to Selector
« Reply #7 on: June 22, 2022, 12:34:18 PM »
I guess my point is if the patype has changed, then perhaps the parameters must be over-written by the default values? Anyway it's quite minor really, I fixed it manually via maxscripts.

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3960
    • iToo Software
Re: Upgrading Boolean Parameter to Selector
« Reply #8 on: June 23, 2022, 09:49:23 AM »
You're right !. If parameter is a different type, it should be always overwritten.

That was not checked correctly in the update process. I just fixed it for next update.
Carlos Quintero
iToo Software

Alex.S

  • Full Member
  • ***
  • Posts: 136
Re: Upgrading Boolean Parameter to Selector
« Reply #9 on: June 23, 2022, 12:09:59 PM »
Great, thank you!