Hi all - I am trying to create a new command and to achive my goal I need to use Clipping Sections.
Basically, with Python, I create a Clipping Section and place it on 0,0,0. Then I want to create a Linear Array, but when I copy the Clipping Section it won’t update the name. It does update if I run the command on Rhino, but if I run my code it will copy the section, but without updating the name, which then causes all sorts of problems when I want to create the section.
I noticed that once I move the objects that I created with the array, then they will update.
Unfortunately, after I create all the copies that I need for my scope, even when I move them lets say 10 and -10, they won’t update. They seem to update only after I drag the with the cursor. This is not going to make my script automatic, unfortunately. It really look like it is a bug.
I’ve deleted the AI spam bot that had “answered” your question and moved your thread to the scripting category, where hopefully someone will be able to provide a real answer.
Perhaps you can post the code that you have so far?
-wim
Hi Simone, please post your code to test with, and also what version of Rhino are you using and service release.
In Rhino, there is a detection of new ClippingSections added, and names are checked, but this might not be available in scripting. I’ll test with your sample to see if that can be supported.
In order for the script to work, I would try to assign new unique name to each clipping-section in the array before adding it to Rhino. Perhaps append the counter to the original object name. I hope this helps.