Thank you Wes, your suggestion of casting works!
It also solved another similar problem I had where I created a group layer using
Code: Select all
grp = moho:CreateNewLayer(MOHO.LT_GROUP)
and it seemed to be recognised as a group layer as I successfully moved layers into it using
Code: Select all
moho:PlaceLayerInGroup(veclayer, grp)
but then later when I tried to change its masking properties using
Code: Select all
grp:SetGroupMask(MOHO.GROUP_MASK_HIDE_ALL)
It gave me the same error message:
Code: Select all
attempted to call method 'SetGroupMask' (a nil value)
Following your example I also fixed that error by using:
Code: Select all
grp = moho:LayerAsGroup(moho:CreateNewLayer(MOHO.LT_GROUP))
Thank you!
Where are the tool and menu scripts located?
All I found were the cpp bindings in the Extra Files folder. BTW they surprisingly seemed to suggest that the Image Layer is inherited from the Audio Layer?