PDA

View Full Version : Make a plugin


Durli
08-25-2009, 02:13 PM
hi all, i know minimum about maxscript, but a need use a simple script. Can anyone make it for me ? Thanks a lot

1. select all
2. group
3. set group pivot to position 0 0 0
4. rotate group -90 degrees at axis Z
5. ungroup

AkramParvez
08-25-2009, 03:58 PM
enjoy..

select objects -- selects all objects
grp = group selection --- groups all selection
grp.pivot = [0,0,0] --- sets group pivot to position 0 0 0
rotate grp (angleaxis -90 [0,0,1]) ----rotate group -90 degrees at axis Z
ungroup grp --- ungroup

PEN
08-25-2009, 05:02 PM
Or..

for x in selection do x.transform*=rotateZMatrix -90

No grouping needed.

CGTalk Moderation
08-25-2009, 05:02 PM
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.