sketchucation logo sketchucation
    • Login
    1. Home
    2. nirvanaguy
    3. Posts
    ⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here
    N
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Question about developing plugin to automate functions

      @tig said:

      https://developers.google.com/sketchup/docs/ourdoc/animation might be a good start...

      yes thank you for that. i've looked through a majority of that but here's where the forum community comes into play. i'd like to hear what other people have to say and if anyone has done any similar projects so they can give some valid input as far as what method would be easiest and most practical in the long term

      posted in Developers' Forum
      N
      nirvanaguy
    • Question about developing plugin to automate functions

      Hi,
      So essentially I'm trying to develop a plugin that will take live updating input and perform the task asked for by the user

      i'm interested in automating these functions:
      -Move
      -Rotate object
      -draw (line, square, circle, etc.)
      -stretch object

      so as you notice these aren't camera functions, they're actually manipulating an object or creating some virtual image

      it'll go something like this:

      if cmd=move
      select object
      take input coordinates that refresh every .5 seconds and move according to the vector created by the inputs
      etc.

      the only thing is.. i'm sort of stuck as to how i can actually get my logic running. can anyone give me some idea or method as to how i can start implementing this idea? I've considered using an animation scheme where you can change the rate at which the object moves and the delta coordinates (difference vector of where to move next), things like that. I've also thought about just using a tool to draw the line every .5 seconds or whatever the interval is to draw a line

      do these sound like good ways to approach this task? if not, can someone enlighten me on a more efficient/robust way to accomplish this? Thanks so much!

      posted in Developers' Forum
      N
      nirvanaguy
    • RE: Developing a plugin/macro for orbiting based on input

      @thomthom said:

      You'll have problems with re distributing the plugin - don't see any users willing to sacrifice their shortcuts.

      OK fine, just to have a baseline program that works how would I implement that using the keyboard arrows?

      Essentially the data i'm going to input is X,Y,Z position coordinates and an indicator of which operation I want to perform (orbit, move, draw, etc.) that will be constantly updating/refreshing so that I can draw a line in real time (I don't want it to just draw the line in 1 move for me, or orbit from 0 to 140 degrees west instantaneously, essentially I want to update in segments so it appears that this is all happening in real time)

      Thanks a lot for your help! I really appreciate any input you can provide

      posted in Developers' Forum
      N
      nirvanaguy
    • RE: Developing a plugin/macro for orbiting based on input

      @thomthom said:

      Using letters will be difficult, as they will trigger keyboard shortcuts. You can tap into the arrow keys - with a Tool class.

      well then cant i just change my shortcut configurations and save the preferences.dat file?

      and i don't know if i can limit myself to just arrows because ultimately I'm going to be syncing this up with a C# code that will provide me both values for a position and for a function

      posted in Developers' Forum
      N
      nirvanaguy
    • Developing a plugin/macro for orbiting based on input

      So I have been reading up on tutorials how to code in Ruby and whatnot, but I am having trouble finding a solution to my problem and hopefully some of the experienced users here can help me out.

      I am trying to develop a plugin or macro that can take at least 1 input, lets say multiple keyboard letters for now, and map it to a function such as orbiting. I have thought about ways to do this and realized that you could just have the input (coming from a C# code) just send the physical key that is mapped to that function in the shortcuts, but I need something that's more robust and on a deeper level. That brought me to the point where I need to develop some sort of plugin that will respond something like this:

      ex: I press and hold D and the camera orbits to the right direction. I press and hold A and it orbits to the left direction. I hold A and W together and that orbits in the top left corner direction, etc.

      Not only do I want to be able to control orbiting, but I want to be able to draw lines based on a sequence of coordinate/position points I give to it. etc.

      Right now I know this sounds very ambiguous and dumbed down, but I would REALLY appreciate any help to set me in the right direction. Any input or suggestions are definitely welcome! if you have any questions about what i'm trying to do i'll answer as soon as I humanly can. Thanks a lot and I look forward to hearing some input!

      posted in Developers' Forum
      N
      nirvanaguy
    • 1 / 1