Jump to content

Setting rotation of marker?


Recommended Posts

I looked @ editor resource for you and i found this:

you should look in editor_main>client>main

This isn't complete I know I had no time because I need to go

function updateArrowMarker( element ) 
    if not g_arrowMarker then return end 
    local element = element or g_selectedElement 
    if not element then return end 
    local radius = edf.edfGetElementRadius(element) or 1 
    local offsetZ = radius + 1 
    local markerSize = math.max(g_arrowMarkerMinSize,g_arrowMarkerSizeRatio*radius) 
    if isElementAttached(g_arrowMarker) then 
        detachElements(g_arrowMarker, getElementAttachedTo(g_arrowMarker)) 
    setMarkerSize(g_arrowMarker, markerSize) 
    attachElements(g_arrowMarker, element, 0, 0, offsetZ) 
    showGridlines ( element ) 
function createArrowMarker( handle ) 
    if not handle or not isElement(handle) then return end 
    if g_arrowMarker then destroyElement(g_arrowMarker) end 
    g_arrowMarker = createMarker(0, 0, 0, "arrow", .5, 255, 255, 0, 255) 
    setElementDimension(g_arrowMarker, getWorkingDimension()) 
    updateArrowMarker( handle ) 

you should look in editor_main>client>main

Link to comment

@denny199 I want to set a rotation of a cylinder. Tried that code and it really doesn't set rotation of a cylinder.

Weird... I tried setElementPosition and it works... but setElementRotation doesn't...

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...