Jump to content

Help with my first script


Manuel
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...