Search found 118 matches

by Breinmeester
Tue Jun 11, 2013 3:13 pm
Forum: Scripting
Topic: How to collect bone transformations on points?
Replies: 3
Views: 1693

How to collect bone transformations on points?

Hello, In a layer script i need to set the fPos on a number of points in the layer, but i need to take in account the transformations on those points that have been made bij bone deformations and smartbone actions, ideally seperately. Does anybody know if there's a matrix or how to retrieve a vector...
by Breinmeester
Fri Jun 07, 2013 12:12 pm
Forum: Scripting
Topic: select across layers
Replies: 6
Views: 2059

Re: select across layers

I did this for my multilayer magnet tool. The trick is to put the layers in an array. Next you put the points you need in an array as well which you make a property of the layer, like this: layer = moho.layer layer.PointList = {} Now you can recall all the layers in the array and every pointlist arr...
by Breinmeester
Tue May 07, 2013 12:53 pm
Forum: Scripting
Topic: CONTROL BONES FROM PARENT LAYER (FINISHED)
Replies: 18
Views: 26523

Re: A BONE CONTROL SCRIPT (NEEDS WORK!)

I haven't got time to fully dive into what youre trying to accomplish, so this might be a stupid suggestion, but can't you use the fMovedMatrix of the bones or the GetFullTransform matrix to compensate for the layer or bone transformations of the child layer?
by Breinmeester
Mon Jan 28, 2013 4:33 pm
Forum: Scripting
Topic: UI Plug-in
Replies: 7
Views: 2298

Re: UI Plug-in

Ive tried out your example file. It's a little too slow for me. Also, it's a window outside of the programme. I don't think it's an appropriate solution for the fact that Moho isn't passed to a non-modal window. Make it happen lost Marble!
by Breinmeester
Fri Jan 25, 2013 11:48 am
Forum: Scripting
Topic: UI Plug-in
Replies: 7
Views: 2298

Re: UI Plug-in

Thanks! That looks great!! I hope to play around with this as soon as i have time.
by Breinmeester
Thu Jan 24, 2013 8:18 pm
Forum: Scripting
Topic: UI Plug-in
Replies: 7
Views: 2298

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: 2298

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: 5485

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: 2115

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: 2115

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: 2115

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: 2115

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: 1231

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: 1231

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: 1231

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!