CGTalk > Software > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 03-03-2013, 02:44 PM   #1
chucky666
New Member
portfolio
USA
 
Join Date: Mar 2013
Posts: 6
Maxscript getting selection set help

I have a copy and paste routine written in Autolisp for copying and then a paste routine written in maxscript. I also wrote other maxscripts that that does stuff (mainly my text object maniulator code) to the pasted objects.
The issue is that when I need to paste objects that I need to run the addtional script too in Max I have to do it in a new project, then export then merge into the actual project.

Is there any way code wise to to get a marker of the last entity in the drawing, then make a selection set of all entities that follow ?

The paste code I wrote simply imports a specific Autocad file name that Autocad has written.
it all works fine, I just wish Max highlighted all the objects after insertion.

Thanks for reading.
Chuck
 
Old 03-05-2013, 08:03 AM   #2
Swordslayer
isKindOf Artist
 
Swordslayer's Avatar
portfolio
Vojtech Cada
3D generalist
Czech Republic
 
Join Date: Jun 2006
Posts: 360
Send a message via ICQ to Swordslayer
The easiest way is to get objects.count before the import and then get all the new nodes (in the range objects[previous count + 1] to objects[objects.count]; metioned several times on this forum if you need some further reference).
__________________
Blog :: LinkedIn profile
 
Old 03-05-2013, 08:03 AM   #3
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:20 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.