Search found 8 matches

by jasonrfox
Fri Nov 18, 2005 6:50 pm
Forum: Scripting
Topic: Changing styles and effects
Replies: 3
Views: 3386

That's not a bad idea. I wonder if I can force moho to load the new file after it's generated by the script? If so, then there's no reason why one couldn't write a tool that edits or creates styles in script, saves a new moho file, and invokes a load to make the change. Not very elegant but might do...
by jasonrfox
Fri Nov 11, 2005 11:39 pm
Forum: Scripting
Topic: Changing styles and effects
Replies: 3
Views: 3386

Changing styles and effects

I am writing a script to recursively change colors throughout an existing moho document. It works great except where named styles and effects are concerned. From other posts it appears that I can't touch the named styles at all through LUA. Is that 100% true or could I somehow access the "appli...
by jasonrfox
Mon Jul 25, 2005 4:35 am
Forum: Scripting
Topic: GetFullTransform() interaction with bones
Replies: 2
Views: 2936

GetFullTransform() interaction with bones

GetFullTransform appears to work perfectly for normal layer hierarchies. It also works great when the document is supplied as the last argument, factoring in the camera's effects on the layer. Unfortunately it looks like I'm missing the effects of bones . The script reference says GetFullTransform i...
by jasonrfox
Fri Jul 22, 2005 10:06 pm
Forum: Scripting
Topic: units of the Vector2 X&Y
Replies: 10
Views: 6810

Hmmm... I worked out the matrix composition order. Now I can reconstruct the camera transform. Then I started adding in the layer transformation again and realized that GetFullTransform may actually be the final matrix. I think I was expecting something else. It's a little unintuitive at first that ...
by jasonrfox
Fri Jul 22, 2005 5:40 pm
Forum: Scripting
Topic: units of the Vector2 X&Y
Replies: 10
Views: 6810

How to get the final camera matrix transform?

GetFullTransform works very nicely. However it does not include the camera. GetOutsideViewMatrix only returns the orbit transform. If the camera is in the default render state as with a ResetView then it only returns an identity matrix. Is there an easy way to get the camera matrix as it will be ren...
by jasonrfox
Tue Jul 19, 2005 4:03 am
Forum: Scripting
Topic: units of the Vector2 X&Y
Replies: 10
Views: 6810

Thanks for the pointer!

Thanks -

That helps a lot. It takes a while to learn an entire API and sometimes its tricky to find just the right function - you saved me a bundle of time.
by jasonrfox
Mon Jul 18, 2005 11:53 pm
Forum: Scripting
Topic: units of the Vector2 X&Y
Replies: 10
Views: 6810

Moho data format

I'm working on a program that needs to know the location of the corners of a layer in image space coordinates after Moho applies all of its transformations. After a lot of experimenting, I assume that Moho treats everything in 3D and uses 4x4 tranformation matrices to apply layers to their final sha...
by jasonrfox
Mon Mar 14, 2005 6:10 am
Forum: How Do I...?
Topic: How do I launch a script on start up?
Replies: 1
Views: 1549

How do I launch a script on start up?

I want to launch Moho automatically and immediately execute a LUA script. How can this be accomplished? Does Moho accept any command line options? Will the command line batch exporter mentioned by LM in the past exist soon? Can the GUI based batch export be invoked and populated using LUA? thanks fo...