Go Back   AC3D Forums > Resources > AC3D Scripts and Mods
Register FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Display Modes
Old 1st February 2018, 09:14 AM   #1
SpitForty
Junior Member
Member
 
Join Date: Jan 2018
Posts: 24
Default 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
SpitForty is offline   Reply With Quote
Old 1st February 2018, 06:06 PM   #2
SpitForty
Junior Member
Member
 
Join Date: Jan 2018
Posts: 24
Default 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?
SpitForty is offline   Reply With Quote
Old 1st February 2018, 06:22 PM   #3
SpitForty
Junior Member
Member
 
Join Date: Jan 2018
Posts: 24
Default Re: Understanding Scripts

All is well if I launch the texture editor before I do these commands
SpitForty is offline   Reply With Quote
Old 5th February 2018, 04:09 AM   #4
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default 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.
Andy is offline   Reply With Quote
Old 5th February 2018, 04:59 AM   #5
SpitForty
Junior Member
Member
 
Join Date: Jan 2018
Posts: 24
Default Re: Understanding Scripts

Many thanks. I think I have the hang of this now.
SpitForty is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 05:16 AM.


AC3D Forum
(C) Inivis Limited 2020