[Closed] Projection Modifier – Adding Reference Geometry
I can’t seem to figure out how to add geometry to the Reference Geometry list for a Projection Modifier. Most of the script hooks for it appear to be read-only. Here’s what I have so far:
select $targetMesh
modPanel.addModToSelection (Projection ()) ui:on
$targetMesh.modifiers[#Projection].geomNodes[1] = $referenceMesh
– Runtime error: Attempt to set read-only property: geomNodes
Scroll to the bottom of the projection modifier help page and look under: Interface:projectionModOps-Eric
Got it, thanks man!
AddPModObjects <array>node_list <boolean>createNew <boolean>deleteAll [objList :<array>]
Adds Projection modifier objects to the nodes in the array.
If createNew is true, a new modifier is created, otherwise the existing modifier is used.
If deleteOld is true, all previous objects will be deleted from the modifier’s geometry selection.
If the option objList : parameter is supplied, the Target objects will be added to the list, otherwise the Pick dialog will be displayed to pick Target objects manually.
Here’s what I ended up doing:
select $targetMesh
modPanel.addModToSelection (Projection ()) ui:on
addPModObjects $ false true objList:$referenceMesh