A friend of mine told me that it is easier to learn how to code with a project. Now I have a project, and i don't know how to code. So here begin my journey on maxscript.
My project: For some time, i used to make a relatively easy rig for my character,(i don't like CAT for some reason) And i managed to make it pretty solid. But it still take almost a day per character to put it in place. So I want to write a code wich will set it up for me.
Right now, I manage to write the setup of the basic bones which will be use with the skin modifier. But in order to keep the scene clean, i'd like to move all the bones in a new layer. That's where i'm stuck.
As I said I don't know how to code, and i'm asking for help
boneSys.createBone [0,0,0] [0,-30,0] [1,0,0]
$.name = "base"
boneSys.createBone [0,-30,0] [0,-40,0] [1,0,0]
$.name = "nub_base"
$.parent = $base
/*select all bones*/
select (for b in objects where classof b == boneGeometry collect b)
/* create new layer and store bones */
Layer = LayerManager.newLayerFromName "MC_bones"
So here a part of what I have so far:
a bone and his nub
then a selection of all bones
then the creation of a new layer.
Now how can i make all the bone to go ine the new layer?
Or how can i create a new layer, select it and create the bone inside?
Thanks for reading