Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

help with script evaluating

4 REPLIES 4
Reply
Message 1 of 5
impacman
428 Views, 4 Replies

help with script evaluating

hi

i made a simple script to turn on and off objects.visibility (for normal navigation in "orbit point of interest" mode)

but every time i restart max i need to evaluate it by myself before it begins to work

Please, help, what do i do wrong?

 

(
     fn wiretoggler state =
          (
          for obj in objects do
          (obj.visibility = state)
          )

 

     if state !=1 then
          (
          wiretoggler 0
          viewport.SetShowEdgeFaces (true)
          state=1
          )
          else
          (
          wiretoggler 1
          state=0
          )
)

4 REPLIES 4
Message 2 of 5
istan
in reply to: impacman

autostart ?

Message 3 of 5
impacman
in reply to: istan

hi

 

no.

i keep it in usermacros directory, putting it in autostart doesnt resolve issue

i think there is kind of logical problem here, but cant understand which 

Message 4 of 5
A012255
in reply to: impacman

your script is written in a way it needs to be executed/evaluated..

Message 5 of 5
impacman
in reply to: A012255

and how should i rewrite it then?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report