What does the Camera#description method do?


#1

I’m working with the camera API and just noticed the #description and #description= methods. Does anyone have any idea of what a camera description is in SketchUp? I can’t think of anything like it in the UI.

Could it be related to the Advanced Camera Tools plugin or is it maybe a leftover from some old removed feature?


#2

It’s for smuggling secret messages in .skp files!

I think it’s rather a left over from the original design phase of SketchUp’s core classes (it exists in both Ruby API and C SDK, not added by Advanced Camera Tools). Only scenes have been exposed in the UI (and have their own description), but cameras and vertices have never received that honour.


#3

Too bad I can’t come up with any message to smuggle :frowning: . The API works in mysterious ways…


#4

At one time there perhaps was an idea to have a camera listing in the UI, and the description would be displayed there.

Or, perhaps it is just something for compatibility with external formats like Collada (DAE) which might have descriptive attributes for camera(s).


Strange that there is no name property though.


#5

is it part of the ‘windoze only’ camera stats tool?

john


#6

Nope (even after setting the current view’s camera description to some text), …

Sketchup.send_action( 10624 )

… just shows this:


#7

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.