Physion

  • Increase font size
  • Default font size
  • Decrease font size
Welcome, Guest
Username Password: Remember me

Bean machine generator (scripted scene)
(1 viewing) (1) Guest

TOPIC: Bean machine generator (scripted scene)

Re: Bean machine generator (scripted scene) 6 years, 1 month ago #575

  • Dimitris
  • OFFLINE
  • Administrator
  • Posts: 218
Maybe I haven't understand the problem correctly, but in my computer graphicsView.zoomExtents() works okay.

Here's what I do to verify that:

1. Create a simple scene (say just one box at the center of the scene)
2. Zoom out a couple of times
3. Type graphicsView.zoomExtents() in the console and press enter

The scale of the graphics view changes so that the box fits in it.

Doesn't that happen for you?

Re: Bean machine generator (scripted scene) 6 years, 1 month ago #576

  • Lynxx
  • OFFLINE
  • Gold Boarder
  • Java/C#-Developer
  • Posts: 223
Alx_g wrote:
Glenn555 thanks for comment!

"graphicsView.zoomExtents();" does not seem to work for me?

yes, I have the same problem too

Got the same prob in this scene and noticed the same while coding LabyrinthGame, but never tried zoomExtends() twice, should be added to the bugs list.
Infinity is vast, especially near end.
bye, Lynxx

Re: Bean machine generator (scripted scene) 6 years, 1 month ago #578

  • Alx_g
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
admin wrote:
The scale of the graphics view changes so that the box fits in it.

Doesn't that happen for you?

Same with 'Zoom Extents' from Physion menu
Sometimes it must be done twice.

Example:
1.
There is a scene 02.scene
open it
This image is hidden for guests. Please log in or register to see it.
perform 'Zoom Extents' and save as 02-1.scene This image is hidden for guests. Please log in or register to see it.
perform 'Zoom Extents' again
This image is hidden for guests. Please log in or register to see it.

2.
open 02-1.scene
performing 'Zoom Extents' once is enough
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
Last Edit: 6 years, 1 month ago by Alx_g. Reason: attach file

Re: Bean machine generator (scripted scene) 6 years, 1 month ago #579

  • Dimitris
  • OFFLINE
  • Administrator
  • Posts: 218
ohh... Now I see what you mean...

I'll try to fix this. Thanks for the screenshots

Re: Bean machine generator (scripted scene) 6 years, 1 month ago #580

Yes, sorry, it always works straight away from the console.
Only a problem when it is in a script. Will use the double-line for now.
1x1 square diag = root-2. Cube diag = root-3. Beautiful !

Re: Bean machine generator (scripted scene) 4 years, 7 months ago #777

  • ckstewar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
This may be a dumb question, but how do you get all the balls back up to the top to rerun the process? I want to use this as the core for demonstrating statistics and I need to change color of balls, and other things like have two balls of different size hit and bounce off each other at the apex, have a small magnet at the apex that will deflect a certain color ball, etc. I just don't see controls for starting this or changing conditions. Please write me at This e-mail address is being protected from spambots. You need JavaScript enabled to view it .
Moderators: Glenn555
Time to create page: 0.14 seconds