Maxscript getting selection set help

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  03 March 2013
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.
  03 March 2013
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
  03 March 2013
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 04:08 PM.

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