Reply To: Using updated parameters in properties script

Home Forums General discussions Using updated parameters in properties script Reply To: Using updated parameters in properties script

#4213
Matt Andrews
Participant

I’m trying to create objects for a prefab building system.

The objects represent elements of the system which are wall, floor and roof.

The wall elements have battens, moisture membranes, etc. I’ve now added those components via the components list within the object. I’d like to update their quantities when the objects are resized or options are changed.

For example, the wall object can have battens on the inside, outside or both. It seems like the best way to calculate the quantities of the battens is when they’re being drawn as then you can update some number every time you draw a new batten. However it seems like there is no way to share variables between scripts.

I’m looking for some way of sharing varibales or parameters between scripts that can then be accessed by the component list.

Is this the correct approach, or is this not possible?