![]() |
Message error script console ldcad1.5 - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: General (https://forums.ldraw.org/forum-12.html) +--- Forum: Help Wanted (https://forums.ldraw.org/forum-33.html) +--- Thread: Message error script console ldcad1.5 (/thread-20970.html) |
Message error script console ldcad1.5 - Vitor Alexandre - 2016-03-05 Hello friends, how are you? I'm starting now in CAD 1.5 and I already have scripting issue. I'll copy my script here for you guys give a look. function register () ani site = ldc.animation ('demo') ani: SetLength (20) ani: SetEvent ('frame', 'onframe') end function onframe () Local ani = ldc.animation.getCurrent () Local mainSf = ldc.subfile () Local ori = ldc.matrix () Local teste5 = mainSf: getRef ( 'teste5.ldr') Local angle = 720 * ani: getFrameTime () / ani: getLength () ori: setRotate (angle, 1,0,0) teste5: Setori (ori) end register () This popping up a message; [String "teste2.lua"]: 15: Active refline link needed. someone please help me ... I can not find anything about it. Please.. Re: Message error script console ldcad1.5 - Vitor Alexandre - 2016-03-05 No one can help me with script ??? I am Brazilian and I do not speak English .. Someone please.. Re: Message error script console ldcad1.5 - Philippe Hurbain - 2016-03-05 Don't be so impatient!!! If/when someone has an answer to propose he will chime in! I had a look at your script but don't see clearly what might be wrong. Maybe your should post your mpd file too, that would help. Re: Message error script console ldcad1.5 - Roland Melkert - 2016-03-05 the 'mainSf:getRef ( 'teste5.ldr')' call probably failed to locate the asked part leaving the ref unlinked. Are you sure it is the correct name (case sensitive) Re: Message error script console ldcad1.5 - Vitor Alexandre - 2016-03-05 Thanks for attention .. sorry but my anxiety is that I can not solve alone because I do not know sometimes program nothing but love lego engineering. The correct name of this but do not know how to solve .... I need more help ... Ps. My English is bad. Re: Message error script console ldcad1.5 - Philippe Hurbain - 2016-03-05 You should really post your LDraw model file! Re: Message error script console ldcad1.5 - Vitor Alexandre - 2016-03-05 Managed to solve after many sips of coffee ... The problem was that I was not adding in submodel so I was not thinking .. Now I managed to make a shaft rotate. Thanks for the help of all. sorry for the inconvenience in the forum, but I'm really interested in learning. Good bye and thanks. Re: Message error script console ldcad1.5 - Willy Tschager - 2016-03-05 I've just deleted 5 messages from you which where cross posted all over the forums. In case this happens again because of your impatience I'm gonna block your account. w. LDraw Content Manager Re: Message error script console ldcad1.5 - Vitor Alexandre - 2016-03-05 Got it. It will not happen again. excuse me. |