tweener 1.31.70でSpecial propertiesを使う方法が変わっていた

Tweener Documentation and Language Reference

Special properties work in a modular way. They’re not available by default, so they have to be registered first before they can be used, by using the registerSpecialProperty, registerSpecialPropertySplitter, and registerSpecialPropertyModifier methods.

TweenerでGlowフィルタも動かしたくて、突発的にtweenerをアップデートしたところ、Blurなどのフィルタ系のプロパティでエラーが発生。調べてみると、フィルタ系のプロパティの使い方が少々変わっているようだ。

これまでは、何もせずとも、_blur_blurXなどを呼び出せていたのだが、フィルタ系のプロパティ、いわゆるSpecial propertiesを管理するシングルトンクラスのinitializeを行わなければならないらしい。

// Import Tweener
import caurina.transitions.Tweener;

// Import the list of special properties we want: FilterShortcuts
import caurina.transitions.properties.FilterShortcuts;
// Initialize the FilterShortcuts class
FilterShortcuts.init();

tweener 1.31.70でSpecial propertiesを使う方法が変わっていた」への1件のフィードバック

  1. ピンバック: Recent Links Tagged With "tweener" - JabberTags

コメントを残す

メールアドレスが公開されることはありません。

CAPTCHA