Page 1 of 1

It is possible get all points of a Grid Warp Node with code?

Posted: Tue Feb 11, 2020 12:14 pm
by morrisondoll
Hi everyone!
I'm trying to manipulate the points of a Grid Warp Node with scripts but I don't find some information or way to get these points with code.
Screen Shot 2020-02-11 at 2.12.45 PM.png
I'm thinking that it isn't possible, anyone knows if this is possible?

Thanks!!! :D :D

Re: It is possible get all points of a Grid Warp Node with code?

Posted: Tue Feb 11, 2020 12:29 pm
by Shem Namo
I am not sure if this helps, but you can try looking in the "Grid Warp Tracker" script.
viewtopic.php?f=6&t=3411

Thank you,
David Kohen.

Re: It is possible get all points of a Grid Warp Node with code?

Posted: Tue Feb 11, 2020 1:02 pm
by morrisondoll
I will check the script.

Thanks!!! :) :) :)

Re: It is possible get all points of a Grid Warp Node with code?

Posted: Tue Feb 11, 2020 2:36 pm
by morrisondoll
I helped me!! Thanks!!!!!

The solution is copy all settings of the Grid Warp Node and get the points property.
The points are added 0.5 to get the real position.

Example:
grid_settings = comp:CopySettings(_G["node_name"])
grid_points = grid_settings.Tools["node_name"].Inputs.DstGridChange.Value.Points