In light of the Coronavirus crisis, please help make sure nothing stands in the way of social distancing in the VFX industry.

This petition asks the MPAA to act accordingly:


Sign the petition on Change.org

Be safe, everyone.

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

User avatar
morrisondoll
Posts: 16
Joined: Mon Oct 14, 2019 12:25 pm
Answers: 1
Real name: Israel Trejo

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

#1

Post by morrisondoll » Tue Feb 11, 2020 12:14 pm

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
by morrisondoll » Tue Feb 11, 2020 2:36 pm
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
Go to full post
You do not have the required permissions to view the files attached to this post.

User avatar
Shem Namo
Fusionista
Posts: 376
Joined: Sun Oct 06, 2019 9:15 pm
Location: North Israel
Real name: David Kohen
Been thanked: 6 times

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

#2

Post by Shem Namo » Tue Feb 11, 2020 12:29 pm

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.

User avatar
morrisondoll
Posts: 16
Joined: Mon Oct 14, 2019 12:25 pm
Answers: 1
Real name: Israel Trejo

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

#3

Post by morrisondoll » Tue Feb 11, 2020 1:02 pm

I will check the script.

Thanks!!! :) :) :)

User avatar
morrisondoll
Posts: 16
Joined: Mon Oct 14, 2019 12:25 pm
Answers: 1
Real name: Israel Trejo

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

#4

Post by morrisondoll » Tue Feb 11, 2020 2:36 pm

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