Search found 113 matches

by Breinmeester
Thu Jan 24, 2013 8:18 pm
Forum: Scripting
Topic: UI Plug-in
Replies: 7
Views: 1987

Re: UI Plug-in

Wow, sounds good! Can u share your findings and knowledge?
by Breinmeester
Thu Jan 24, 2013 8:12 am
Forum: Scripting
Topic: UI Plug-in
Replies: 7
Views: 1987

Re: UI Plug-in

If Moho was accessable in a non-modal window, users could script their own floating windows with functionality, much like the Actions or Styles window. Alas, it is not....
by Breinmeester
Thu Jan 10, 2013 3:34 pm
Forum: General Moho Discussion
Topic: Do You Keep Forgetting To Deselect Keys In Timeline Too?
Replies: 17
Views: 4518

Re: Do You Keep Forgetting To Deselect Keys In Timeline Too?

I agree. It's a welcome feature but a pain in the ass the way it works now. A simple toggle in the tool options would be the solution.
by Breinmeester
Sun Jan 06, 2013 7:12 pm
Forum: Scripting
Topic: GetFullTransform on mouseEvent.vec
Replies: 5
Views: 1754

Re: GetFullTransform on mouseEvent.vec

Ok, i realized quickly how foolish my question was. Parent layers can be rotated and scaled non-uniformly causing all sorts of transformations that effect the children down the stack. There is no single scale component in the GetFullTransform. In the end i had to go up the stack from the target laye...
by Breinmeester
Sat Jan 05, 2013 5:53 pm
Forum: Scripting
Topic: GetFullTransform on mouseEvent.vec
Replies: 5
Views: 1754

Re: GetFullTransform on mouseEvent.vec

So my first problem was about transforming the mouseEvent.vec when trying to operate on a different frame than the current one. My second problem is about transforming the mouseEvent.vec when trying to operate on a different layer than the current one. The solution is like the one before: local m = ...
by Breinmeester
Sat Dec 29, 2012 4:48 pm
Forum: Scripting
Topic: GetFullTransform on mouseEvent.vec
Replies: 5
Views: 1754

Re: GetFullTransform on mouseEvent.vec

Ok, i have run some tests and i have solved one of my problems. What i've figured is that the mouseEvent.vec doesnt need a transform, it already takes the current fulltransform into account. So the above script will work this way: local v1 = LM.Vector2:new_local() local v2 = LM.Vector2:new_local() l...
by Breinmeester
Sat Dec 29, 2012 11:41 am
Forum: Scripting
Topic: GetFullTransform on mouseEvent.vec
Replies: 5
Views: 1754

GetFullTransform on mouseEvent.vec

Hello there, Im finishing up two scripts, but im running into the same problem with both of them. So please, can we settle this once and for all: how exactly do the transform matrices work??? I have the following code: local v1 = LM.Vector2:new_local() local v2 = LM.Vector2:new_local() local vec = L...
by Breinmeester
Mon Nov 26, 2012 2:22 pm
Forum: Scripting
Topic: Looking for a script
Replies: 3
Views: 1086

Re: Looking for a script

Ok, i fixed it myself.

I changed line 210 from:

Code: Select all

mouseEvent.view:Refresh()
to

Code: Select all

mouseEvent.view:RefreshView()
Now it draws a preview correctly.

Again, awesome script!!!
by Breinmeester
Mon Nov 26, 2012 2:06 pm
Forum: Scripting
Topic: Looking for a script
Replies: 3
Views: 1086

Re: Looking for a script

Hey thanks! That's exactly it!

It does give me an error though:
line 210: attempt to call method 'Refresh' (a nill value)

Anyone knows how to fix that?

Awesome script!!!
by Breinmeester
Mon Nov 26, 2012 11:45 am
Forum: Scripting
Topic: Looking for a script
Replies: 3
Views: 1086

Looking for a script

I'm looking for a user script that was once posted here that allows you to select a number of points, draw a line and it will place the selected points cleverly along the drawn line.
Anybody knows where i can find it? Thanks!
by Breinmeester
Mon Nov 05, 2012 6:20 pm
Forum: Scripting
Topic: ASP 9.1 Crashes on Undo with my LayerScript attached
Replies: 1
Views: 1222

ASP 9.1 Crashes on Undo with my LayerScript attached

Anybody know why Moho crashes when I hit undo with my Layerscript attached? Is there a way to avoid this? Any help welcome.
by Breinmeester
Wed Oct 10, 2012 2:40 pm
Forum: Scripting
Topic: Help please: moho a nil value?
Replies: 4
Views: 1327

Re: Help please: moho a nil value?

I've tried this: dv_MainScriptPopUp:HandleMessage(msg) if (msg == self.CLICKBUTTON) then dv_OtherScript:Run(moho) end But if dv_OtherScript tries to access moho it returns the same error: attempt to index local 'moho' (a nil value) Even though it works fine when you run it from the scripts menu. Thi...
by Breinmeester
Tue Oct 09, 2012 7:21 pm
Forum: Scripting
Topic: Help please: moho a nil value?
Replies: 4
Views: 1327

Re: Help please: moho a nil value?

Hey thanks for that! Could you please copy and paste or describe what's written on the other forum on this subject matter? I could realy use the info. I wasn't an active member here when that forum was created, so maybe there's a reason for all the secrecy, but i just don't get why a moho community ...
by Breinmeester
Tue Oct 09, 2012 5:26 pm
Forum: Scripting
Topic: Help please: moho a nil value?
Replies: 4
Views: 1327

Help please: moho a nil value?

I get the error message:

Code: Select all

attempt to index local 'moho' (a nil value)
when i try to call moho.layer in HandleMessage(msg) or other sub functions. Since this is pretty fundamental stuff I'm guessing I'm doing something fundamentally wrong. Can someone please explain?
by Breinmeester
Sat Sep 29, 2012 7:20 pm
Forum: Scripting
Topic: Scripting documentation with syntax highlighting
Replies: 1
Views: 999

Re: Scripting documentation with syntax highlighting

Thanks for that man! Scripting documentation is surely needed! Not only is trial and error taking up a lot of valuable time, the lack of understanding can also be a threshold in trying out or coming up with new techniques. In scripting i generaly get new ideas when i see new possibilities and seeing...