two Qs: Grouping and Version updates

I got two questions. First one is about groups, I know how you can have an array with objects and put them into a new group:

    group groupList name:strGroupName.text

However I just can't seem to figure out how to add and remove from group, using obj and a named group. Any code examples of how to do this? The other question is about versions. Sometimes when you update your script, you have made changes to it, that makes scenes using the old version, not really work correctly. For example if you move items in rollouts, the parameters doesn't exist in the same places, so the they turn into default.

What is the best way to make backwards compatible updates, when for some reason, the code change a lot (especially variable names)? Right now I'm playing with an idea of a tool that add an data storage modifier to the objects, that retrieve the data, and then you can update the scripts and recover the data.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
McGreed's picture

I still having problems

I still having problems figure out how to add an object to an existing group, but it's not important, since I don't need it now, just nice to know how to do it for another time.

What I really need help with, is to figure out how to update my modifier to new version, where some of the parameters has changed.
As example:

rollout mainOldRollout rollout:rolloutOld
(
  myInt type:#integer animatable:false ui:intMyInt default:1
)

If my updated modifier has changed the name of the rollout, or myInt to myNewInt, is it possible to retrieve the old parameters and put them into the new ?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.