Page 1 of 1

How do I get the Smart Warp Layer settings in the Image Tag of the Image Layer Setings in Script?

Posted: Sat Nov 07, 2020 4:34 pm
by CIto
I am creating a Script using information from SmartWarp.
How do I get the SmartWarp data set in ImageLayer's Settings?

Re: How do I get the Smart Warp Layer settings in the Image Tag of the Image Layer Setings in Script?

Posted: Sat Nov 07, 2020 6:09 pm
by hayasidist
is this what you want?

MohoLayer:SetDistortionMeshLayer(layer)

http://mohoscripting.com/methods/1180

Re: How do I get the Smart Warp Layer settings in the Image Tag of the Image Layer Setings in Script?

Posted: Sun Nov 08, 2020 4:56 pm
by CIto
Thanks for the reply.

But that's not the information I want.

For example.
LayerID 1 MohoLayer ImageLayer
LayerID 2 MohoLayer MeshLayer (SmartWarp)
If this were to happen.

MohoLayer:SetDistortionMeshLayer(layer)
What you can get here is the MeshLayer in the Layer of LayerID2.

I would like to know the information about the Layers of LayerID1 to 2

Re: How do I get the Smart Warp Layer settings in the Image Tag of the Image Layer Setings in Script?

Posted: Sun Nov 08, 2020 10:42 pm
by synthsin75
MohoLayer:GetDistortionMeshLayer()
http://mohoscripting.com/methods/1181

So ImageLayer:GetDistortionMeshLayer() will return the assigned smart warp layer.

MohoLayer:SetDistortionMeshLayer(layer) sets which layer is used as the smart warp.

Re: How do I get the Smart Warp Layer settings in the Image Tag of the Image Layer Setings in Script?

Posted: Mon Nov 09, 2020 4:54 pm
by CIto
Thank you!
We have the income for the information we need!

> So ImageLayer:GetDistortionMeshLayer() will return the assigned smart warp layer.

I didn't know you could use it like this.