What's new with scripting

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
eago
Posts: 19
Joined: Wed Dec 01, 2010 4:27 am
Location: Colombia

What's new with scripting

Post by eago »

Hi
Is there information available on what has been added to the api?
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Post by Rudiger »

Mike has just posted the new version 8 scripting interface here:
Version 8 scripting interface

From what I can tell, these are the new additions in version 8:

layer:CountChannels() - Get number of channels in layer
layer:GetChannelInfo(id, channelInfo) - Get info about channel with id
layer:Channel(id, subID, doc) - Get channel with id

layer:CountActions() - Get number of actions in layer
layer:ActionName(id) - Get name of action with id

layer.fLayerOutline - Layer outline anim channel
layer.fOutlineWidth - Layer outline width anim channel
layer.fOutlineColor - Layer outline color anim channel

curve:GetControlPoints(segID, p1, p2, p3, p4, forDrawing=false) - Get control points of curve segment

shape:Name() - Get name of shape
shape:SetName() - Set name of shape

moho:FileNew() - Create new document
moho:FileOpen(path) - Open existing document
moho:FileSave() - Save current document
moho:FileSaveAs(path) - Save current document as
moho:FileImport(path) - Import file
moho:FileRender(path) - Render file

All I can say is, WOW :shock:! I've wanted some of these for a very long time!
Post Reply