PDA

View Full Version : Edit the "Edit Normals" Script to add features...


abyjoe
11-06-2007, 10:56 PM
i want to edit this script to add few features to make it more interactive as its a lot of pain to work on larger models with the help of the current tool.

1. Add shortcuts to select normal, vertex, edge, face sub level
2. Add the possibility to be able to mirror the normals on and objects mirror model

this will be the best thing if it could be done as a start and then probably go on an extend it a bit further.

so the big question everyone... suggestions

abyjoe
11-08-2007, 08:20 AM
anyone ??? please

JHN
11-08-2007, 01:33 PM
Which script? I know Edit Normals only as modifier...

-Johan

abyjoe
11-08-2007, 10:22 PM
yes thats the one but its a macroscript so it can be edited. I want to be able to add some features to it as the current features are not enough and costs me more time to finish a model... and very annoying aswell.

JHN
11-09-2007, 08:23 AM
Then lookup "edit_normals" in the mxs help file. I think all stuff is exposed.
I have written a script to also change normals so there are ways of doing it, so I think the mirror function will be the most work.

-Johan

abyjoe
11-09-2007, 08:14 PM
no infact there is nothing to edit the script. it only opens up macros_modifiers.mcr when clicking on the edit script... so cant edit the edit normals script... is there any other way i can get to do this?

JHN
11-11-2007, 08:04 PM
I take from your comments now your not an experienced scripter.. that's ok, I'll try to explain a bit. Default max modifiers are not scripts!! They are hard coded and compiled plugins that can be accessed with the help of scripts, depending on how much they are exposed to maxscript. So by default a modifier is not a script!!! Although a modifier can be extended with a script.

The script you excessed is the script that assigns modifiers to and selection of objects. You do not want to change it, cause it's a max defaults script, if you have no good reason to edity it leave it alone and built your own script.

Why? Cause it gives you more control and is cleaner to work with. So what you need to do is lookup editnormals and macroscripts in the maxscript helpfile and read up on these topics to build your own custom code.

A start would be:

macroScript EditNormalsExtras
category:"myTools"
tooltip:"Edit Normals Modifier Extra's"
ButtonText:"Edit Normals Extra's"
(
on execute do "your script stuff"
)


I personally don't have time to write the whole thing for you. Maybe someone else can jump in here. But if you want to write scripts for max, you should definetly study the samples that come on the install DVD and read the mxs help file, lots of examples and good code. If you don't have time or patience to learn, it's better to put up a request here or for example on scriptspot.com, there's a special forum there, although I'm not sure it's very active...

Goodluck,
-Johan

CGTalk Moderation
11-11-2007, 08:05 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.