I am creating a Script using information from SmartWarp.
How do I get the SmartWarp data set in ImageLayer's Settings?
			
			
									
									
						How do I get the Smart Warp Layer settings in the Image Tag of the Image Layer Setings in Script?
Moderators: Víctor Paredes, Belgarath, slowtiger
- hayasidist
 - Posts: 3907
 - Joined: Wed Feb 16, 2011 11:12 am
 - Location: Kent, England
 
Re: How do I get the Smart Warp Layer settings in the Image Tag of the Image Layer Setings in Script?
is this what you want?
MohoLayer:SetDistortionMeshLayer(layer)
http://mohoscripting.com/methods/1180
			
			
									
									
						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?
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
			
			
									
									
						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
- synthsin75
 - Posts: 10363
 - Joined: Mon Jan 14, 2008 2:20 pm
 - Location: Oklahoma
 - Contact:
 
Re: How do I get the Smart Warp Layer settings in the Image Tag of the Image Layer Setings in Script?
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.
			
			
									
									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.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
						Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: How do I get the Smart Warp Layer settings in the Image Tag of the Image Layer Setings in Script?
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.
			
			
									
									
						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.