Jump to content
Search Community

pixiPlugin - invalid property warning

macguffin test
Moderator Tag

Recommended Posts

Hi when using pixiPlugin with filters, things like brightness, blur etc you often need to set the resolution of the filer to stop the image becoming blurry.

 

gsap.to(bunny,{pixi:{brightness:1.3,resolution:2},yoyo:true,repeat:-1,duration:2}

 

This works - you can see from the object I've logged in the console in the code pen that its resolution has been set correctly.

It does however complain of Invalid property resolution set to 2 Missing plugin? gsap.registerPlugin()

If there any way to register a new property in a plugin?

 

Thanks

Matt

Screenshot 2020-04-08 at 13.57.52.png

See the Pen VwvZxGJ by macguffin (@macguffin) on CodePen

  • Thanks 1
Link to comment
Share on other sites

Nah, sorry about that - I'll just have the plugin ignore that property as a "real" one (it's only for when you're doing a filter-related animation). As you discovered, it doesn't actually cause any problems. You can safely ignore that warning in the console. You can preview the upcoming release with that fix at https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/PixiPlugin3.min.js

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...