|
15th March 2006, 09:46 AM | #1 |
Senior Member
Professional user
Join Date: May 2005
Posts: 147
|
AC3D6 - saving the background image setup
I've looked and cant see a answer anywhere, so...
Is there a save background images method in the new version? I dont get to sit n model for hours, as all my modelling is done inbetween other obligations. I waste so much time setting up each session. I love AC3D but this is a real issue for my use of it. Thanks, and appologies if its been answered already
__________________
Spinner Blessed are the cracks, For they let in the light |
15th March 2006, 10:53 AM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Yes - there is a tool which saves the background image config to a file.
|
16th March 2006, 04:46 AM | #3 |
Senior Member
Professional user
Join Date: May 2005
Posts: 147
|
Thanks Andy
__________________
Spinner Blessed are the cracks, For they let in the light |
12th May 2006, 12:14 PM | #4 |
Senior Member
Professional user
Join Date: May 2005
Posts: 147
|
Andy,
I cant seem to find this option to save background images in AC3D6. Could you direct me to the tool you spoke of, please?
__________________
Spinner Blessed are the cracks, For they let in the light |
12th May 2006, 12:45 PM | #5 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
script for loading and saving background image configs
Until we add a 'Scripts and mods' section on this forum - here's a script which adds loading and saving of the background images.
Save this text into a file called 'viewsave.tcl' and place the file in the 'scripts' folder which is within the AC3D program folder. When AC3D starts it will read this script and add two items to the Tools menu. Code:
# simple AC3D script that adds two items to tool menu - to save and load the background image setup # for AC3D 6 - 24th Jan 2006 proc saveview { viewid file} { # get the view entity set v [ac3d viewid_to_entity $viewid] #get the background image entity from the view set image [ac3d entity_get_value $v "background_image" ] if {$image != 0 } { # if there's an image, read the relavent values for the layout, along with the image name from the image entity set x [ac3d entity_get_value $v "background_image_xoffset" ] set y [ac3d entity_get_value $v "background_image_yoffset" ] set scale [ac3d entity_get_value $v "background_image_scale" ] set picname [ac3d entity_get_value $image "name"] puts $file "$viewid|$picname|$x|$y|$scale" } } proc save_view_config { } { set filename [tk_getSaveFile -title "Save bg image config" -filetypes {{"AC3D project" { acp }}} -defaultextension .acp ] if { $filename == "" } { return } set path [file dirname $filename] set file [open $filename w] saveview 0 $file saveview 1 $file saveview 2 $file saveview 3 $file close $file } proc load_view_config { } { set filename [tk_getOpenFile -title "Load bg image config" -filetypes {{"AC3D project" { acp }}} -defaultextension .acp ] if { $filename == "" } { return } set file [open $filename r] gets $file line while {$line != ""} { # puts $line set parts [split $line "|" ] set vid [lindex $parts 0] set bgname [lindex $parts 1] set x [lindex $parts 2] set y [lindex $parts 3] set scale [lindex $parts 4] #puts "view $vid bg image $bgname, $x $y, $scale" set vent [ac3d viewid_to_entity $vid] ac3d entity_set_value $vent background_image_xoffset $x ac3d entity_set_value $vent background_image_yoffset $y ac3d entity_set_value $vent background_image_scale $scale ac3d load_background_image $bgname $vid ac3d redraw_all gets $file line } } add_tools_menu_item "Load background image config" load_view_config "Load a view configuration" add_tools_menu_item "Save background image config" save_view_config "Save the view configuration" |
14th September 2009, 08:14 PM | #6 |
Junior Member
Junior member
Join Date: Jan 2004
Posts: 6
|
Re: script for loading and saving background image configs
I could use this script. But it doesn't work in 6.5.28 for me. Any suggestions?
Thanks in advance. |
15th September 2009, 05:04 AM | #7 |
Junior Member
Member
Join Date: Jan 2006
Location: Germany
Posts: 16
|
Re: AC3D6 - saving the background image setup
Well, it does for me in the same 6.5.28. You get additional functions under "Tools" ---> "Load background image config" and "Save background image config". Background image stays in size and place.
|
15th September 2009, 09:21 AM | #8 |
Junior Member
Junior member
Join Date: Jan 2004
Posts: 6
|
Re: AC3D6 - saving the background image setup
I found the script "bgimageloadsave.tcl" on another thread last night. It seems to work great. I'm not sure what the problem was with "viewsave.tcl" except that it is a cut and paste script where "bgimageloadsave" is a download.
Thanks |
19th December 2009, 08:30 PM | #9 | |
Junior Member
Junior member
Join Date: Oct 2009
Posts: 3
|
Re: script for loading and saving background image configs
Quote:
Thanks for your help. Turbopropdriver Last edited by turbopropdriver; 20th December 2009 at 01:54 AM. Reason: missing phrase. |
|
26th February 2010, 04:24 PM | #10 |
Member
Advanced member
Join Date: Apr 2009
Location: NW
Posts: 48
|
Re: script for loading and saving background image configs
wow, I wish I knew of this script before. I always have to replace my images each time I start modding.
|
|
|