Plugin ‘error’ – setting group name (Resolved for 8.1)

This should be easy to fix. It is one of the remnants of the old ‘write layer’ approach to doing things. (though you never needed to write a layer for a group-just do things in the right order)

The following code gives me a message:

‘A group must be made a child of another group using ‘AddChild’ before it can be named’

The plugin then completes correctly!

Set oNewGrp = Scene.CreateGroup
oGrp.addChild oNewGrp
‘ build pointer object
addPointer oNewGrp, Scene
oNewGrp.SetPosition oGrp, 0, cx, cy, cz
oNewGrp.SetName ‘FSXAttach’

You must be logged in to reply in this thread.

2 posts