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 7:34 am
				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 9:09 am
				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 7:56 am
				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 1: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 7:54 am
				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.