Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
NormanL  
#1 Posted : Thursday, August 30, 2012 5:54:11 AM(UTC)
NormanL

Rank: Advanced Member

Groups: Member
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

Dmitry.Obukhov  
#2 Posted : Monday, September 3, 2012 2:13:21 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
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.

thanks 1 user thanked Dmitry.Obukhov for this useful post.
NormanL on 9/4/2012(UTC)
Users browsing this topic
Guest
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.