[Closed] Access Projection Modifier through MXS?
Hi guys,
I have been trying to create a once-click transfer vertex color script.So far i have been able to
- Add projection modifier to the source object.
- Add target object to the projection list.
- Add a projection mapping node.
objSource = selection[1]
objTarget = selection[2]
fn transferVdata objSource objTarget =
(
AddPModObjects objSource 1 0 objList:objTarget
local modifProject = objSource.modifiers[1]
select objSource
setCommandPanelTaskMode #modify
modifProject.addRegisteredProjectionType 1
redrawViews()
)
transferVdata objSource objTarget
I need to do the following :
4.Add a “Projection Holder” modifier to the target object.
5.Change the “Source & Target Channel” in the Projection modifier.
6.And finally project the data.
I have gone through the help file again and again.As i am quite new to maxscript, i am not able to properly understand the documentation on “Projection_Mapping” and can’t implement it in thescript.
Any help will be much appreciated.
Thanks.
You can pull apart my rock maker script it does some of these things http://dl.dropbox.com/u/652616/RockMaker2_5.ms
The script makes a high poly rock and you can then, make a low poly rock, based on the high poly rock.
It adds all necessary projection modifiers, projection holders, unwraps it and gets it ready for
texture projection, through render to texture.