Hello
I have a problem with enabling and disabling the same operation using Railclone's example.
Using the example of this code, it is necessary for the geometry to be displayed in the viewport, but the auto update checkbox was disabled.
Example:
viewArr=(for obj in objects where classof obj.baseObject==RailClone_Pro and not obj.isHiddenInVpt collect obj)
for i in viewArr as array do
(
i.autoUpdate=on
i.disabled=off
)
for i in viewArr as array do
(
i.autoUpdate=off
)
When adding code to an interface, the operation is not complete. Geometry is not displayed in the viewport.
Example:
on btn_1 pressed do
(
viewArr=(for obj in objects where classof obj.baseObject==RailClone_Pro and not obj.isHiddenInVpt collect obj)
for i in viewArr as array do
(
i.autoUpdate=on
i.disabled=off
)
for i in viewArr as array do
(
i.autoUpdate=off
)
)
The sequence of lines does not work:
i.autoUpdate=on
i.autoUpdate=off
What could be the problem?
Any help appreciated.
miauu · 2020-07-23