SLAnimationInformation Class Reference
Inherits from | NSObject |
---|---|
Declared in | SLAnimationInformation.h SLAnimationInformation.mm |
– replaceLayerWithName:withLayer:error:
Before building an animation you can replace the internal layers with already existing layers. The new layers will then receive all transformations and animations the internal layers would otherwise receive. Make sure the name of the layer you want to replace is unique. Transform values, position, anchor point and bounds are transferred immediately to the passed-in layer from the internal After Effects layer.
- (void)replaceLayerWithName:(NSString *_Nonnull)name withLayer:(CALayer *_Nonnull)replacementLayer error:(NSError *_Nullable *_Nullable)error
Parameters
name |
Name of the layer in your AE comp to be replaced |
---|---|
replacementLayer |
Layer replacing the stand-in |
error |
Optional error pointer or nil. |
Discussion
Warning: AE shape- and text layers cannot be replaced.
Declared In
SLAnimationInformation.h
– adaptLayerProperties:
Before building an animation you can go through a selection portion of the layer properties, read out and/or change their static values. A property’s value range is oriented along that of the After Effects counterpart and maybe unexpected. Reading out a value before setting it can be helpful in these circumstances.
- (void)adaptLayerProperties:(void ( ^ _Nonnull ) ( SLProperty *_Nonnull property , NSString *_Nonnull layerName ))propertyFilter
Parameters
propertyFilter |
Block called for every adaptable property on every layer from your After Effects composition. |
---|
Discussion
Warning: Properties which are time varying (with keyframes, expressions) will almost always disregard the static value of a property.
Declared In
SLAnimationInformation.h