[Closed] Scale to world axis??
hi,
can any body, help with scaling an object with world axis, as pivot point,
i checked multiple times, but with no clue,…
could you be a tad more specific?
if english aint your strongsuit maybe add some before and after pictures so we get what your after?! :arteest:
for example,
box01 is at position 40,40,40
and its pivot is center to object,
with script if i scale it , it does only based on pivot, scaling to center pivot is working,
but i want the scale script should work with pivot taking to word axis, and scale… it
scale local takes place, which i want to make scale with world axis…, how to do this…
hi ,
i want to control using script, not manually,
scale$ [0.5,0.5,0.5] this line of script scales the selected object to 50% , but it scales, taking the object local axis, but it should scale taking the pivot to world axis, and scale… to 50%… how??
(
for o in selection do
(
local op = o.transform
o.pivot = [0,0,0]
scale o [0.5,0.5,0.5]
op = scale op [0.5,0.5,0.5] true
o.pivot = op.pos
)
)
yes thank you, it works, exactly, what i need… for the above script,
can u please help this out, i am newbie for scripting side,
this is the script i use to convert an object to max file name,
max_file_name = getFilenameFile maxFilename
sel=selection as array
for s in sel do s.name=max_file_name
but how can i able to select an object, which has the maxfile name. with in the file, .,??
select
getNodeByName
if/then/else expression
for loop
are the things you want to look up
if you want to check a file thats still closed:
getMaxFileObjectNames
array methods
string methods
and something you want to look up in general:
scope of variables
local and global variables
for o in selection do (o.transform = o.transform * scalematrix [0.5,0.5,0.5])
the above script performs scaling about the world axis (whats confusing is, coordsys world performs scaling on local axis :surprised ).