Operating on multiple parts


RE: Operating on multiple parts
#4
(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()
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Operating on multiple parts - by Jarema - 2017-12-27, 11:07
RE: Operating on multiple parts - by Roland Melkert - 2017-12-27, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)