ScriptSpot

Forum topic · General Scripting

vertex scaling

By ghoulfool · 2010-12-15

Description

I'm trying to scale a selection of vertices on two axes only using

scale $.selectedVerts [1.12935,1.12935,1]

It's what's the scriptlistener is spewing out
It doesn't seem to work in either local or world space. I've also tried with the object referenced as well:

scale $ship.selectedVerts [1.12935,1.12935,1]

So what's wrong with this picture?
Cheers,

Comments (2)

scale verts?

Anubis · 2010-12-16

realy have no idea how you record this "scale $.selectedVerts [1.12935,1.12935,1]" with MacroRecorder...

-- this should works
vSel = $.selectedVerts
in coordsys local for v in vSel do
    v.pos *= [1.12935,1.12935,1]

ghoulfool · 2010-12-16

Anubis,
After collapsing the mesh the scale script works a treat. Thank you kindly.