General guidance on creating new containers, and assigning axes #196
Replies: 2 comments
-
|
Hi @dan-montelo You need to work with standard containers.
gc.get_xl(container_id)
[1.000000, 0.000000, 0.000000]
gc.get_yl(container_id)
[0.000000, 1.000000, 0.000000]Set container stub signaturedef set_container_contents(container_id: int, element_i_ds: List[int]) -> None:
"""set container contents
Parameters:
container_id: container_id
element_i_ds: element_i_ds
Returns:
None
""" Container to Container BlockConverting from a container to a container block works. ec.convert_container_to_container_block(container_element_ids) |
Beta Was this translation helpful? Give feedback.
-
|
Can you recommend a method to copy Container Blocks? When you use: ec.copy_elements([element_id], vector) in the case that the element_id is a Container Block then the returned object is a simple Container. Thanks, Dan |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
For 'setting' containers I have found:
ec.set_container_contents(a0, a1) - but it needs more descriptive documentation
ec.create_auto_container_from_standard(elements, output_name, standard_element_name) - but I don't want to use 'standard' elements
ec.create_auto_container_from_standard_with_reference(elements, output_name, standard_element_name, reference_id) - but I don't want to use 'standard' elements
For 'getting' from containers I have found:
ec.get_container_content_elements(element_id) - which works.
For converting container blocks:
ec.convert_container_to_container_block(elements) - which doesn't seem to work.
Thanks,
Dan
Beta Was this translation helpful? Give feedback.
All reactions