Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
blender python script help
08-12-2008, 01:23 PM,
#1
blender python script help
i am currently working on a track conversion from gp4 (hungaroring 2006) which i just added to svn and i need some help finishing it. the track is currently missing the surface coefficients (easy to do) and the starting grid/ pit lane markers. in gp4 these markers are drawn directly in the game as per some data files. what i would like to do is write a script which will help me create the markings in blender as meshes to be placed on top of the track. i don't know anything about writing blender scripts so i am asking here for help.

basically what needs to be done is this. given a track sector (a rectangle, so in blender i will select the four vertices) create a new mesh (another rectangle) to be positioned in the plane of the track sector (look at the z position) or a little bit above it and then be able to specify the x and y offsets from the bottom left corner and the width of the new mesh all as a fraction of the track sector dimensions.

this is a picture of what i am trying to do:

[Image: mesh.jpg]

i can do this one sector at a time. so for the first sector (top one), the x and y offset will be zero and the width will be 1. for the second one the x and y offsets will be, let's say, 0.05 and the width 0.3.

can anybody help me write this script (or at least come up with some examples on how to do this). thanks.

--alex--
Reply


Messages In This Thread
blender python script help - by alex25 - 08-12-2008, 01:23 PM
[No subject] - by alex25 - 08-12-2008, 03:57 PM
[No subject] - by alex25 - 08-12-2008, 07:16 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-13-2008, 10:05 PM
[No subject] - by alex25 - 08-15-2008, 02:29 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-16-2008, 12:56 PM
[No subject] - by alex25 - 08-17-2008, 02:37 PM
[No subject] - by osteron - 11-03-2008, 03:52 PM
[No subject] - by joevenzon_phpbb2_import3 - 11-03-2008, 09:39 PM
[No subject] - by osteron - 11-04-2008, 01:09 PM
[No subject] - by joevenzon_phpbb2_import3 - 11-07-2008, 11:12 AM
[No subject] - by osteron - 11-09-2008, 10:46 AM
[No subject] - by joevenzon_phpbb2_import3 - 11-09-2008, 01:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)