Autodesk

architecture, sustainability, building performance, environmental design, architectural science...


Move object in direction of normal

Is there a scripting command to enable me to move a group of objects relative to their own normals? i.e. move everything by 1000mm in direction of their normals?

Cheers

Dan

Script for generating report
Optimisation with a Genetic Algorithm

I am not really to sure

comment posted by craines :: 29 May 2008 - 11:01pm

I am not really to sure about scripting functionality for this, but in terms of the control for an object I believe you need to look at "object orientation" -- if you select an object this can be found in the Selection Information panel.

I'll investigate further and see what I can work out...



Please search before posting a question.

thank you

comment posted by danatgia :: 3 June 2008 - 3:50pm

thank you

Okay I have found out that

comment posted by craines :: 4 June 2008 - 1:34pm

Okay I have found out that apparently there isn't a specific script function that will do this, but I was given the following example function that would do the job:

function MoveObjectByNormal(distance)
  nx, ny, nz = get("object.normal", objIndex)
  cmd("object.move", objIndex,
  nx*distance, ny*distance, nz*distance)
end

Hope this helps.



Please search before posting a question.



Related websites

Translate This Site

User login