Notifications
Clear all

[Closed] Make a plugin

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
2 Replies

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

Or…

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

No grouping needed.