Skip to content

RampPlug : Add loading of serialisations from Gaffer 1.8 - #7285

Merged
johnhaddon merged 1 commit into
GafferHQ:1.7_maintenancefrom
johnhaddon:rampPlugForwardCompatibility
Nov 24, 2026
Merged

johnhaddon merged 1 commit into
GafferHQ:1.7_maintenancefrom
johnhaddon:rampPlugForwardCompatibility

Conversation

@johnhaddon

Copy link
Copy Markdown
Member

Serialisation has changed in 1.8 to avoid any reliance on Plug::Flags::Dynamic, with the following changes :

  • All points are created with a call to addPoint() rather than addChild(). The new addPoint() overload added here takes care of that.
  • Points are parented below a points plug instead of alongside the interpolation plug, and are addressed by index rather than by name. The new compatibility config takes care of that.

This is a companion PR to #7284.

@murraystevenson murraystevenson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks John, this looks good aside from the stray debug print noted inline. Feel free to merge once that's taken care of.


__children = {}

print( "HI 1" )

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh! Thanks for catching that. Fixed and merged...

Serialisation has changed in 1.8 to avoid any reliance on `Plug::Flags::Dynamic`, with the following changes :

- All points are created with a call to `addPoint()` rather than `addChild()`. The new `addPoint()` overload added here takes care of that.
- Points are parented below a `points` plug instead of alongside the `interpolation` plug, and are addressed by index rather than by name. The new compatibility config takes care of that.
@johnhaddon
johnhaddon force-pushed the rampPlugForwardCompatibility branch from 8706dfa to 3bc67b3 Compare November 24, 2026 09:11
@johnhaddon
johnhaddon merged commit f99769c into GafferHQ:1.7_maintenance Nov 24, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from Pending Review to Pending release in Work in Progress Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Pending release

Development

Successfully merging this pull request may close these issues.

2 participants