Hi.
What tweak would be needed to make this fantastic plugin work under the portable plugins extension? So far it would not show up in the Draw menu. I assume it has to do with the path reference somewhere?
Thanks.
martin
Hi.
What tweak would be needed to make this fantastic plugin work under the portable plugins extension? So far it would not show up in the Draw menu. I assume it has to do with the path reference somewhere?
Thanks.
martin
"...with Maintenance 2 release, ACT installs with SketchUp 8.
@unknownuser said:
Re: [Plugin] Camera Settings Export/Import
Postby rv1974 on Wed Aug 29, 2012 11:36 am
Could you add support for hidden geometry, visible layers, style and shadows please?
thanks for your comment - but to be honest, this was not the intention of this plugin, I only wanted to transfer camera settings between files. going into "hidden geometry, visible layers, style and shadows" will require to write a script for transferring complete scenes/pages, a completely different approach...
martin
hi Aerilius, thomthom, all.
thanks for the feedback, i have updated the script accordingly and replaced it in my original post.
regards,
martin
p.s. advanced camera tools would be great - maybe you can convince our sysadmins to install it for us
Hello.
I'm sharing a little script with everybody that does export & import camera settings, making transfers between files possible.
As I was not able to find any script that can do this (though "Camera Statistics" provides the raw numbers, it requires quite a bit of copy&paste efforts), I went ahead and wrote it myself.
So it's basically tackling an issue we have quite frequently in the office, when we have several versions of SU model files, dating back to different dates and occasions. And then sometime the client asks for a before/after comparison, for what we have to retain older files and retrofit them with newer camera positions (or do the same thing vice-verse).
The scripting might be ruby-beginner-style, but is seems to be working on our SU 8 Win7 systems.
It provides basic export options (choose between exporting "all scenes", "current scene" "selected scene") and import options (update camera of scenes with identical scene name)
If somebody find this helpful, feel free to download and use it and let me know if you like it.
Also feel free to enhance the script further.
Best regards.
Martin
p.s. updated version uploaded 2012-08-29
Hi all.
Thanks for the feedback.
@unknownuser said:
No tutorial?
Hmm, let's see.
-> will include this inside the script when I post the next update.
@unknownuser said:
It works on OK on Mac OSX & SU7. Can you set it up so that by default it uses sunrise to sunset for the initial run, then allow the user to set specific times for subsequent runs. (...) Also set the default specified time run to run from 6am to 6pm as an initial setting, this makes more sense in more parts of the globe.
Tasman
-> Might fine-tune the time-settings once I have some free time to spend.
@unknownuser said:
Another useful addition would be to have an option to print out the time as part of each new scene.
-> Other than the Scene Name? This would require to add a text object for each scene, right? Or even different layers for each scene?
Martin
Hello from Tokyo.
I finished my first ever ruby script.
'Needed something to help me with my Shade Analysis (original post: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=18099)
Attached the first final beta-version. It seems to work fine.
Since my earlier scripts, it is now possible to modify the location (lat/lon), adjust the TimeZone Offset and choose a time range for which the analysis should be created.
What the script does: it creates a series of scenes with different date/time settings. These scenes can be exported to jpgs for further analysis.
I am looking forward to feedback and comments. Tell me if it is working for you, I tried it with XP&SU6 only so far.
Best wishes.
Martin
Hi Ray.
Thanks for your comment.
When i started to write this script, it was just meant to make my current task easier.
After some time i noticed this might be useful for other people as well.
I will try to generalize it as much as possible once I find the time.
@facer said:
A few suggestions:
Could you give Southern Hemisphere users the option of reversing
your Winter, Summer etc. labels for the months.An option to print out only the months and dates would assist in
cross referencing the scenes to town planning regulations.
For example "Sept 21 - 1500(3pm)" etc.
-> that sounds reasonable.
@facer said:
- Could there be a selection for only the times required by the
authorities. Such as 0900 am, 1200 noon, and 1500 (3pm)
-> hmm, either you select certain hours in advance or delete unnecessary scenes afterward.
Please keep in mind the script is so far only working for Japan, as the offset is preset within the script. This needs to be changed. I also started writing an if-clause that dynamically only creates scenes for between sunrise and sunset hours.
Best wishes.
Martin
Hi TIG.
Thanks for taking the time to look after my little script.
Looks like you accidentally for forgot to implement the time zone offset..
I enhanced the script further by:
# inpubox
questions = ["Enter Name", "Summertime"]
defaults = ["Shadow-Analysis", "no"]
list = ["", "no|yes"]
my_view_name_values = UI.inputbox questions, defaults, list, "Please adjust."
my_view_name = my_view_name_values[0]
summertime = my_view_name_values[1]
si['TZOffset'] = 9
#include the Time offset
new_t = t + (my_offset*60*60) ### TIG the time is the time ???
# summertime
new_t = t + (60*60) + (my_offset*60*60) if seasons[sss] == "Summer 6/21" && summetime == "yes"
The only remaining question is why the timezone setting was wrong after importing the location from GE....
revised script attached.
Hi everybody.
I just wrote my first (!) few lines in Ruby in order to make Sketchup help me with my Shade Analysis. This script basically creates a series of scenes with different time/date settings.
It's almost working the way I want to, the only thing I cannot figure out is the ShadowTime-issue and the conversion of the different time formats.
(My model location is in Japan).
If anybody is able to have a look at lines 50-54 in the attached file.
Help would be very much appreciated.
Best wishes from Tokyo.
Martin