RE: Operating on multiple parts
2017-12-27, 18:58 (This post was last modified: 2017-12-27, 19:05 by Roland Melkert.)
2017-12-27, 18:58 (This post was last modified: 2017-12-27, 19:05 by Roland Melkert.)
(2017-12-27, 2:38)Michael Horvath Wrote: Is it possible to apply the same rotations on more than one part at the same time? E.g. rotate each part around the y axis by 90 degrees for instance, but not around a common center but around each part locally. Can this be done in MLCAD?
You can do this in my LDCad if you not afraid of an adventure in scripting.
edit: using this script:
Code:
function onRotInsRun()
local sf=ldc.subfile()
if sf:isLinked() then
local sel=ldc.session():getSelection()
local ori=ldc.matrix()
ori:setRotate(45,0,1,0)
for i=1,sel:getRefCount() do
local ref=sel:getRef(i)
ref:setOri(ori)
end
end
end
function register()
local ani=ldc.macro('Rotate instances')
ani:setEvent('run', 'onRotInsRun')
end
register()