I’m going to make a rack that immediately deforms the shape.
So, I want to change the properties I set using the LinearClone function so that the shape changes.
If you type Count directly among the properties of LinearClone, it will change, but I would like to try to change this behavior through Python.
As shown in the attached photo, the value of the Z_count in the property is a variable of the Count in the Linear Clone
Is there a way to implement this?
The Count is an expression property, you don’t need scripting to have it update based on your Z_count component property. Just type Z_count as value and ensure that in the definition of Z_count you have the “Rebuild” option enabled when the value changes.
I activated the function of rebuild of Z_count.
My prediction is that if the value of Z_count is 5, it will be changed to a five-story rack, but the Count of Linear Clone has changed to 5, but there is no change in shape.
However, if i write the number 5 directly in the Count variable of Linear Clone, the shape will change.
I would keep the direction as vector with length 1, and increase the step to use the 300 mm distance. Also make sure that the REbuild flag is on for the Z_count property.