moveTo()

app.project.item(index).layer(index).propertySpec.moveTo(newIndex)

Description

Moves this property to a new position in its parent property group.

This method is valid only for children of indexed groups; if it is not, or if the index value is not valid, the method generates an exception and displays an error. (An indexed group has the type Proper-tyType.INDEXED_GROUP ; )

NOTE: Using this method invalidates existing references to other children in the same indexed group. For example, if you have three effects on a layer, each effect assigned to a different variable, moving one of the effects invalidates the references for all of these variables. You will need to reassign them.

Parameters

ne wIndex The new index position at which to place this property in its group. An integer.

Returns

Nothing.

Other Tags

Posted in PropertyBase object and tagged , , , , , , , , , , , , .