Home   Help Search Login Register  

Author Topic: Check_selections.bio2s and Merge_points.bio2s scripts by Linker Split  (Read 1968 times)

0 Members and 1 Guest are viewing this topic.

Offline Linker Split

  • Members
  • *
  • BHD MOD leader
    • BHD MOD site
Today I started making some O2 Scripts, and i came with these 2 ones:

Check_selections.bio2s
Quote
Description:
Check if the selections of a typical car exist.

Usage:
-->Open the car model which you want to debug (i.e. an hummer)
-->Run the script.
-->If any important selections are missing (such as "pravy predni") an output window will be shown.

++++++++++++NOTE++++++++++++
The current script is CASE SENSITIVE, which means that you have to
write the selections keeping attention to both capital and small letters.
I'll try to correct it in future version (or if you want, do it).


Merge_points.bio2s
Quote
Description:
Merge all the points which distance is < of the number you specify.

Usage:
-->Select the whole model (or only a part of it) of which you want to merge some points.

-->Open the script with a notepad, and change the variable "_dis" to any number you want: the number indicates the distance between the selected points to merge. The higher the number, the more points will be merged.
-->Save again the file
-->Run the script.
-->All the points which distance is < _dis will be merged.


------------------------LINK------------------------
LS_O2scripts.rar (~2Kb)
----------------------------------------------------


I found the utility of check_selections.bio2s to see if I missed some selections (such as levy pradni or Hatch_1) making my hummers for the BHD MOD.
Merge_points.bio2s is very useful when you want to reduce the amount of points and faces of a RES LOD, maybe cause you can decide the distance between the points to be processed, so for example distance=0.2 will not allow the script to process points which distance is > 0.2, but only < 0.2 and so on...

Check them, I know they are very simple scripts, but keep in mind that O2 scripting is a complete new terrain for me ;)

Linker Split
ArmA: Black Hawk Down MOD website
Only the dead have seen the end of war (Plato)

Offline Linker Split

  • Members
  • *
  • BHD MOD leader
    • BHD MOD site
add_material.bio2s script by Linker Split
« Reply #1 on: 22 Jan 2008, 23:42:56 »
Ok here is another one, i think this time useful to speed up your making model work:

Add_RVMAT.bio2s
------------------Link---------------------
Quote
ADD_RVMAT.bio2s (~1Kb)
-------------------------------------------
Automatically add all the needed RVMAT to the selected model in the LOD.

USAGE:
-->Select the part of the model you want to apply your RVMATS (or even the whole model).
-->Run the script, it will add all the needed RVMATS acording to the texture which you used to map your model.

NOTE:
I assume that you made textures using the texture naming rules (so _CO and _CA for your models) otherwise this script will not work properly.
Example:

you have a cube with 2 faces mapped with texture "path\mytex_co.paa", 2 faces without textures, and 2 faces with texture "path\mytex.pac". If you select the whole cube, and execute the script, then you'll have:
2 faces "path\mytex_co.paa" with material "path\mytex.rvmat"
2 faces "path\mytex.pac" with wrong material file name "path\my.rvmat"
a window will pops up twice saying that 2 faces has not textures on them
Hope you'll need it, I use it very very often :)

Linker Split
ArmA: Black Hawk Down MOD website
Only the dead have seen the end of war (Plato)

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Linker, haven't I already told/reminded you about the consecutive posting?

Anyways, to make things more confusing, moving this post again  :D
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.