use thicken generator inside a python generator
-
hi there,
the thicken generator object is a super cool and powerful tool. i'd like to use it inside of a python generator object, to create some more complex geometry. for this i need some of the selection options of the thicken generator. but activating e.g. 'shell' selection from within the python generator will mess up the output geometry of the thicken object and not generate any polygon selection tag. see attached c4d file.
after converting the python generator you have access to the built hierarchy and the generated thicken generator. when you select it and then try to activate some selection options ther will be no selection tags created. so it looks like something in the thicken generator is broken/uncomplete, when it is created within a python generator object.
is there any way to make this work, or is this a special case/limitation?def main() -> c4d.BaseObject: source_obj = c4d.BaseObject( 5170 ) source_obj[c4d.PRIM_CYLINDER_CAPS] = False thicken = c4d.BaseObject( 1060179 ) source_obj.InsertUnder( thicken ) thicken[c4d.SOLIDIFYGENERATOR_SELECTION_POLYGON_BOUNDARY] = 1 # does not create tag, will mess up (delete) geo of the selected polys return thicken
-
circumvented the problem by generating 3 thicken objects - one for each surface part (shell, start cap, end cap). then created selection tags and stitched everything together with a connector object.
-
Hi @datamilch ,
Thanks for reaching out to us and special thanks for sharing your workaround with the community!
It looks like the code for the selections in the Thicken object is not optimized to be triggered from the python. I've created a dedicated bug report for this issue in our internal bug tracking system: ITEM#537292. Thanks for bringing this topic up to us!
Cheers,
Ilia -
-
hi @i_mazlov,
ok, good to know.
i also tried to insert the thicken generator into a temp_doc, activating the selections and executing passes. but that didn't work either.