Jump to content

How i import a simply animation form 3D max to leadwerks?


Recommended Posts

Hi everyone,

I saw the video in the page that explain how to import from 3d Max to leadwerks animations, but in the video don´t show the animation on the "editor", it is shows only in the "modelviewer". When i put the animation in the editor nothing ocurrs. I think that ther is some scrip missing to do that the animation works on the editor.

Thanks for reading, and sorry for my bad english im form spain.

Bye.

Link to comment
Share on other sites

This will do it:

require("scripts/class")

local class=CreateClass(...)

function class:CreateObject(model)
local object=self.super:CreateObject(model)

function object:Update()
	self.model:Animate(AppTime()*0.05,1,0,1)
end

end

 

Not that you also need the animation shader applied in the material. See this lesson:

http://www.leadwerks.com/werkspace/page/Documentation/LE2/tutorials/_/programming/cpp/introduction-to-animation-r11

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

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...