7.1 API Release Notes
-
http://code.google.com/apis/sketchup/docs/releases.html
Few of new methods but nothing major.
-
Hey! thanks remus. I have made this sticky - for a few weeks, at least.
Nothing major - but being able to screen-shot a WebDialog from Ruby is interesting.
New Ruby API Methods
-
model.number_faces
- Returns the number of faces in the Model. -
model.georeferenced?
- This methods determines if the model is georeferenced. -
view.refresh
- The refresh method is used to immediately refresh the view. -
mywebdialog.write_image
'img.jpg'
- The write_image method is used to grab a portion of the screen and save the image to the given file path.
-
-
@jim said:
Nothing major - but being able to screen-shot a WebDialog from Ruby is interesting.
... but is it really useful when there are so many screen capturing options. Seems a bit gimmicky to me, but I stand to be corrected - as usual!
Chris
-
It is the core functionality behind the Photo Texture tool in 7.1.
It should be easier to write plugins which insert textures from photo sites such as flickr, for example.
-
@jim said:
It is the core functionality behind the Photo Texture tool in 7.1.
It should be easier to write plugins which insert textures from photo sites such as flickr, for example.
Suitably corrected and content noted. Thanks.
Chris
-
Wonder if it's possible to make a crude in-model browser... Output the content of a hidden webdialog with a given interval to a face. Then capture the clicks on the face and send them back to the dialogue. Not sure if it's possible to simulate the clicks though.
-
@thomthom said:
Wonder if it's possible to make a crude in-model browser... Output the content of a hidden webdialog with a given interval to a face. Then capture the clicks on the face and send them back to the dialogue. Not sure if it's possible to simulate the clicks though.
Seems possible but why?
-
Just "because".
-
-
@jim said:
Hey! thanks remus. I have made this sticky - for a few weeks, at least.
Nothing major - but being able to screen-shot a WebDialog from Ruby is interesting.
I misinterpreted the word Screen shot, I'm hoping for pictures to be added to the code examples for the entire ruby api, where ever possible. It would help get more potential ruby scriptwriters on board.
Advertisement