How to specify the center point for the node

I want make something like this, plz watch
I found the Implode node in Natron, but I don’t know how to specify the coordinates and transform.

The implode node has several limitations. I did however make a ‘Bulge’ node (OpenCL) some years ago, but it’s beta quality (you can find it in the openfx-arena repository). I can provide you with a binary of the ‘Bulge’ node if wanted (I need to know the platform you are using).

I forgot to answer the originial question, sorry :slight_smile: To get the center point:

Tracker1.tracker.track1.centerPoint.get().x
Tracker1.tracker.track1.centerPoint.get().y

Example of using the ‘crop’ and ‘implode’ node to get the desired effect:

The following expression is used on the crop node (x/y):

Tracker1.tracker.track1.centerPoint.get().x-(thisNode.size.get().x/2)
Tracker1.tracker.track1.centerPoint.get().y-(thisNode.size.get().y/2)

Not a perfect solution, but it works (at least until I can finish the Bulge node).

2 Likes

There’s really no need to make a specific plugin (especially one based on OpenCL).

@fabiof17 would you make a bulge node based on Shadertoy for the community plugins?

There are a few examples, eg:
https://www.shadertoy.com/view/ldGBRw
https://www.shadertoy.com/view/4sScWh

2 Likes

Ok, Shadertoy would probably be a better solution anyway.

2 Likes

Here’s a project with the Bulge effect in a Shadertoy node. I’m pretty sure @fabiof17 will package that nicely in a pyplug!
Bulge.zip (9.0 KB)

2 Likes

Ok, will do it quickly.

2 Likes

Done.

2 Likes