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
New Member
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.
Old 03-05-2013, 08:03 AM   #2
isKindOf Artist
Swordslayer's Avatar
Vojtech Cada
3D generalist
Czech Republic
Join Date: Jun 2006
Posts: 456
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).
Scripts :: linkedin
Old 03-05-2013, 08:03 AM   #3
CGTalk Moderation
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
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

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
Society of Digital Artists

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

All times are GMT. The time now is 12:52 PM.

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