Rank: Advanced Member
Groups: Guest
Joined: 4/26/2012(UTC) Posts: 36
Thanks: 6 times
|
Hi,
Please can you indicate how I can select the last VObject added to a layer. By select I mean show the drag box that surrounds the object when you click on it. The VObject has its SupportedActions set to Drag + Rotate. I'm adding the object server side using the Remote Scripting Method.
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hi Norman, You may use client-side script like this one: Code:
var index = vo.get_index();
var cv = vo.get_canvas();
cv.set_currentLayerIndex(vo.get_layer().get_index());
cv.set_currentVObjectIndex(index);
|
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
1 user thanked Dmitry.Obukhov for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.