|
1st February 2018, 09:14 AM | #1 |
Junior Member
Member
Join Date: Jan 2018
Posts: 24
|
Re: Understanding Scripts
Andy,
I'm back again. Not becoming a nuisance I hope I managed to use boolean knife and cut away to take some mesh out of the larger mesh. Now I'm trying to apply a texture to it. I've loaded the texture using "search_and_set_texture <object> <texturepath> <texturename>" fine, but when I try to adjust the mapping of the object to the texture it doesn't behave as normal. I get this cross bottom left I can't adjust. Any ideas? Now that isn't really a scripting question but the follow on is. I've worked out I can do Texture ReMap Top to bring it back to life, but I can't work out the TCL for that. I've found that "remap_textures <int window>" with a 0 does a remap "front" but can't work out what argument relates to remap top, if indeed I'm understanding this correctly. Is there a similar file to the tclmenu file that reveals what TCL related to buttons in the texture panel i.e. these? Thanks Phil |
1st February 2018, 06:06 PM | #2 |
Junior Member
Member
Join Date: Jan 2018
Posts: 24
|
Re: Understanding Scripts
OK, I found it. ac3duvedit.tcl
In it I found a bunch more AC3D commands that look very useful such as: ac3d uv_remap 0 "map selected surfaces from front" ac3d uv_snap_to_side top "move the selection to the top side" ac3d uv_move_to $prefs_uv_move_x $prefs_uv_move_y "move (center of) selection to this point" What I'm finding though is that AC3D is a little unreliable with these. I;ve had it crashing or beeping that it doesn't recognise the command. Sometimes it succeeds only after I've stopped TCL execution and started a secondary TCL script. Any advice? |
1st February 2018, 06:22 PM | #3 |
Junior Member
Member
Join Date: Jan 2018
Posts: 24
|
Re: Understanding Scripts
All is well if I launch the texture editor before I do these commands
|
5th February 2018, 04:09 AM | #4 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: Understanding Scripts
Yes that's it. When you start the TCE, those commands are added.
The only thing I can think of is for you to call menu_uveditor from your script, which will pop up the TCE and add those commands. |
5th February 2018, 04:59 AM | #5 |
Junior Member
Member
Join Date: Jan 2018
Posts: 24
|
Re: Understanding Scripts
Many thanks. I think I have the hang of this now.
|
|
|