Jump to content

Blender Script: Axis Selection


gerra6

Recommended Posts

Posted

A thought occurred to me today while I was busy chopping meshes in half and mirroring them. Wouldn't it be nice if there was a script that would just select half of a mesh for me?

 

Yeah. That would be nice, I said to myself. I searched and searched but I guess I suck at searching. I finally gave up and just wrote the damn script myself.

 

This adds a script to the Blender edit menu called Axis select. It will select all of the vertices in a mesh that are near the specified axis, greater than the axis, or less than the axis.

 

It can even line the vertices up along the axis, if that's what you're into.

 

*edit* V.2 is a minor improvement. The positive and negative selections now exclude the axis from their selection algorithm.

Posted

Well I hate to do this, I really do but you said you made your own python script. Does that mean you're well versed in this sort of thing? I assume so. I ask cause Im in need of a script that will let me export kf files directly without having to tidy up the kf file in nifskope.

 

Something like this:

http://fallout3.nexusmods.com/mods/15756

 

Problem with that script is that it makes adjustments to the time key which I dont like. I just need the "specialidle" and "cycle_loop" portion of the script but leave the time key alone. Would you be able to help me with that? Thx.

Posted

Well I hate to do this' date=' I really do but you said you made your own python script. Does that mean you're well versed in this sort of thing? I assume so. I ask cause Im in need of a script that will let me export kf files directly without having to tidy up the kf file in nifskope.

 

Something like this:

http://fallout3.nexusmods.com/mods/15756

 

Problem with that script is that it makes adjustments to the time key which I dont like. I just need the "specialidle" and "cycle_loop" portion of the script but leave the time key alone. Would you be able to help me with that? Thx.

[/quote']

 

Sadly, I'm just a python noob. However, python scripts are extraordinarily easy to modify (and just as easy to screw up, so make backups).

 

If you have a decent text editor, open up the script and see if you can spot the offending lines.

 

*edit*

 

I've commented out the offending lines. I have no idea what the effect will be.

 

I replaced this:

 

# beg xyzman

if self.EXPORT_VERSION in ("Oblivion", "Fallout 3"):

if key.value.lower() == "end":

if key.time == 0:

key.time = 10000

else:

key.time = key.time * 10000

# end xyzman

 

with this:

 

# beg xyzman

# if self.EXPORT_VERSION in ("Oblivion", "Fallout 3"):

# if key.value.lower() == "end":

# if key.time == 0:

# key.time = 10000

# else:

# key.time = key.time * 10000

# end xyzman

 

Now, it may be that all you really want to do is to comment out this portion.

 

else:

key.time = key.time * 10000

 

and leave the rest intact.

 

Experiment, try a few things, see what happens. Remember to back up each version of the script.

Posted

Oh wow, thx man. I was online yesterday before bed and after reading your post I opened up the script on wordpad and ...well..."organized chaos" is one way to put it. Dindt understand a lick of it but did catch a glimpse of one or two familiar things. I was gonna try looking into it in more detail on the weekend. W/e the outcome Im grateful for your effort. Thank you.

Posted

Hey my script :-)

 

For myself I chaged it for Oblivion not to do the multiplication with 10000. And for poses (no animation) a start and end value of 0 is ok. This only did not work in Fallout and at this time I did the script. So no need to set end to 10000 for Oblivion if it is 0 and of course don't multiply it.

If I don't forget I will update it.

 

Greetings !

y-man (xyzman)

 

Wow, it's a long time I did not check the feedbacks there.

Posted

New version 1.01 online.

 

Only replaced

if self.EXPORT_VERSION in ("Oblivion", "Fallout 3"):

 

with

if self.EXPORT_VERSION in ("Fallout 3"):

 

So it is ignored for Oblivion.

Remarking all of it like gerra6 will do the same, if you don't use it for Fallout.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...