Is there a way to swap/change elements?

  • jimmyy4
    20th Dec 2012 Member 0 Permalink

    I've never tried using/making lua scripts so i'm asking how do you swap or change elements?

  • jacob1
    20th Dec 2012 Developer 0 Permalink
    @jimmyy4 (View Post)
    this is one of those things that I don't know how it's missing from lua ... but it is. There is currently no way to set the current element, and in tpt++ (the current version), the way that is supposed to be used to get the current elements is broken.

    There is no way to do it then. Even my old favorites menu script is broken. I will eventually add functions to do this though.
  • asdf123
    20th Dec 2012 Member 0 Permalink

    tpt.set_property("type","element1", element2")

  • jacob1
    20th Dec 2012 Developer 0 Permalink
    maybe I misunderstood the question ... ignore what I said, and do what asdf123 said.
    I was talking about the currently selected brush for some reason.