Jim, thank you for always helping me out. I thought I had the right syntax, perhpas some things don't have to be there.
Latest posts made by bender
-
RE: Beginner having issues with ends....need help
-
RE: Beginner having issues with ends....need help
I forgot to say thanks!
-
Beginner having issues with ends....need help
I've got a file with a number of nested if statements, and for loops. I've looked at it multiple times, but I cannot figure out what is wrong. It used to work before, but then I added some more statements and it either seems I have too many or too little, even though I was convinced I had just the exact amount.
It is a very short file. I am hoping someone better than me can quickly glance at it and see if they can tell whether or not I need more "ends" or less of them. I am starting to loose my mind.
-
RE: Question about position in space of an object
thanks! That seems to be what I need.
Bender
-
RE: Question about position in space of an object
Could you be a little bit more precise? I've looked in the transformation class, and see a method that returns the x-axis, y-axis and z-axis vector. I am just looking to get a certain entitie's coordinate. A function that returns it's 3d position.
-
Question about position in space of an object
I've been looking but couldn't find any method that can supply you with this information. If I add an object to my space, for example an object from the 3d warehouse, and I need to know its position in 3d space (ie, its coordinates (x, y, z) ), is there a method that does this for me? How can I do this?
I can't imagine there not being such a function. If I move an object to say (100, 200, 300) through the ruby console, that coordinate I assume should be somewhere present in the object's information. If anyone can help me I'd really appreciate it.
-
RE: Entities, how many is too many?
Hi. I forgot to add another simple question. If I have an entity object, say entities[0]...is there a way to retrieve that entities' present coordinates?
Something like: coordinate = entities[0].get_3dCoord
Is there such a method? How can I do this?
Thank you in advance!
-
Question about entities
I've placed this on the ruby forum, but realized this might be a better place?
I am working on an animation through the reading of a log file. As I am reading it, I am placing entities on the space in Sketchup. It starts off quite fast and gets progressively slower, until it is all very very slow. I am placing quite a bit of entities on the space, (100? maybe more). Is this too much? Is there a way around it? When placing the new object (entity), I use the add_instance method. What do you guys think?
Thank you as always. Benderbender
-
Entities, how many is too many?
I am still working on my animation through the reading of a log file. As I am reading it, I am placing entities on the space in Sketchup. It starts off quite fast and gets progressively slower, until it is all very very slow. I am placing quite a bit of entities on the space, (100? maybe more). Is this too much? Is there a way around it? When placing the new object (entity), I use the add_instance method. What do you guys think?
Thank you as always. Bender
-
RE: Using the Animation Interface, need some help, stuck
Solo: That is right. I'd like to move an object, while keeping the camera unmoved. (At least for now)
Jim: Thank you for that code. I've played around with it and was actually able to get it to work! For testing, I've been outputing the lines that I'm reading from the log file (there are about 6500 of them...). The only problem, however is that this task is VERY slow, and takes a very very long time to read and "animate" the log file, so it isn't much of an animation yet.
The example that I've looked at before moves the camera view around, and it actually is quite fast, but looking at the code, there doesn't seem to be anything to "set" the speed. Is there a way to increase the speed of this?