AntonSynytsia / MSPhysics

A NewtonDynamics wrapper for SketchUp.
http://sketchucation.com/forums/viewtopic.php?f=323&t=56852#p516427
MIT License
55 stars 20 forks source link

Please help! #23

Open Oebie33 opened 4 years ago

Oebie33 commented 4 years ago

For MSPhysics: I am looking for the script text to hide or unhide a group in combination with 'by tick'. Who knows a solution???

AntonSynytsia commented 4 years ago

I suppose you're looking to hide/unhide the group at a constant rate. A solution is attached below:

onTick {
  if frame % 10 == 0
    this.group.hidden = !this.group.hidden
  end
}
Oebie33 commented 4 years ago

Hello Anton, here I will show you my result for hide and unhide groups: https://3dwarehouse.sketchup.com/model/fd9f5141-99e6-4894-9b76-9fd521ba85e5/MSPhysics-OnTick-an-exercise-for-simple-scripts-to-count-the-number-of-touches

Rutger Jesse


Van: Anton notifications@github.com Verzonden: zaterdag 25 januari 2020 02:59 Aan: AntonSynytsia/MSPhysics MSPhysics@noreply.github.com CC: Oebie33 rutger_jesse@hotmail.com; Author author@noreply.github.com Onderwerp: Re: [AntonSynytsia/MSPhysics] Please help! (#23)

I suppose you're looking to hide/unhide the group at a constant rate. A solution is attached below:

onTick { if frame % 10 == 0 this.group.hidden = !this.group.hidden end }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/AntonSynytsia/MSPhysics/issues/23?email_source=notifications&email_token=AOLZS6AKCKOUR4FJOYTDGFTQ7OMJFA5CNFSM4KLIV3S2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ4SQ5Y#issuecomment-578365559, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOLZS6BKG2I5RZYGRLIA65TQ7OMJFANCNFSM4KLIV3SQ.