Itoo Software Forum

Author Topic: Build Button by maxscript  (Read 52 times)

PU1548

  • Newbie
  • *
  • Posts: 17
Build Button by maxscript
« on: August 03, 2020, 12:11:29 PM »
Hi

Using mxscript is possible  to build   RailClone  when auto update is off?

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2514
    • iToo
Re: Build Button by maxscript
« Reply #1 on: August 03, 2020, 01:54:28 PM »
Hi
Not directly. You need to enable autobuild, and then disable it again.
Example script to refresh all RailClone objects(where autobuild was disabled) in the scene:

Code: [Select]
for each in (for obj in geometry where classof obj == RailClone_Pro and obj.autoUpdate== false collect obj) do (each.autoUpdate=true ; redrawViews();each.autoUpdate=false)
Rokas
iToo Software

PU1548

  • Newbie
  • *
  • Posts: 17
Re: Build Button by maxscript
« Reply #2 on: August 03, 2020, 04:25:35 PM »
Thanks    yes  I think this solution too..