[Closed] Projection Modifier: add subobject selection
Hey guys!
I’m working on a transfer UV script that can take material IDs into consideration (only transfer between faces with matching ID)
To do so, my script splits the target mesh into several nodes, each of which contains only faces with the same material ID.
Then it should generate an according number of face selections in the projection modifier reference geometry list and assign each node to the according selection.
This is where I get stuck.
I cannot find any functionality to create those entries.
The only function that can add objects is addObjectNode and it adds the node on object level.
There are loads of arrays that contain the data I want to write, but they’re read only:
$.modifiers[#Projection].geomNodes.count = 1
$.modifiers[#Projection].geomNodeIDs.count = 1
$.modifiers[#Projection].geomNodes[1] = $objarms_debris_base_a_reduced
$.modifiers[#Projection].geomNodeIDs[1] = 1
Is it possible somehow to add face selections and assign object to those in the reference geometry list through script? The attached picture shows the list with 2 face selections and one object assigned to each,
Cheers!
-Sascha