Manuel Posted September 30, 2010 Share Posted September 30, 2010 Hello! I'm tried to create my first custom property with LUA script. I want your help to this. I want to create a property so I can change the texture coordinates. I have writ this: require("scripts/class") local class=CreateClass(...) --############################# function class:InitDialog(grid) self.super:InitDialog(grid) local group=grid:AddGroup("UV coordinates") group:AddProperty("X", PROPERTY_FLOAT, "0,01") group:AddProperty("Y", PROPERTY_FLOAT, "0,01") group:Expand(1) end Now, I don't know what I have to do. Can someone complete the code? thus, I can study your code and learn! Thanks! Quote Link to comment Share on other sites More sharing options...
Canardia Posted September 30, 2010 Share Posted September 30, 2010 I would look in the Wiki for some command which changes texture UV coordinates, and then use that in the script. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Manuel Posted September 30, 2010 Author Share Posted September 30, 2010 Does this not work? http://www.leadwerks.com/wiki/index.php?title=Surfaces#SetVertexTexCoords Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.