import element inside a group using python
-
Hello,
I am trying to have an automated import of files in python.
I need import an obj file directly inside a s4l group.
I am able to do the action of importing and creating the group, separately, however I cannot move the elemt I imported inside the created group with python.
Can you help me?Thank you
-
Hello,
Can you please explain what happens when you try to "move the element you imported inside the created group"?
What error message do you get when you do something like:my_obj_list = s4l_v1.model.Import("my_file.sab") my_group = s4l_v1.model.CreateGroup() for my_obj in my_obj_list: my_group.Add(my_obj) -
Thank you, Indeed using this lines it works, thank you!
Could I ask you, how can I save a matlab file with pyhon?
When I do this, I only add the exporter but I can't save the file in my folder, I have to refresh the exporter manuallyAdding a new MatlabExporter
inputs = [field_interpolation_filter.Outputs["EM E(x,y,z,f0)"]] matlab_exporter = analysis.exporters.MatlabExporter(inputs=inputs) matlab_exporter.UpdateAttributes() document.AllAlgorithms.Add(matlab_exporter)Thank you for your help
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login