Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
change the posistion in pointofView
Old
Shushi88
Guest
 
Status:
Posts: n/a
Default change the posistion in pointofView - 04-28-2007, 11:11 AM

Hello, I am just wondering if you can help me in this part. Is it possible to edit the pointofView in properties of the object. This is because i want the object to return to it's original position as a next method. If this thread is a RTM ,please inform me which page in the "Learning to Program with Alice" and which section so that I will look it up in detail.
   
Reply With Quote
Quickest way is to drop dummy objects.
Old
DrJim
Guest
 
Status:
Posts: n/a
Default Quickest way is to drop dummy objects. - 04-28-2007, 11:34 AM

The quickest way to mark and return to a position is to drop a dummy object at another object that is in the position you want. The dummy object only has point of view information - but any time you want something to move to the position and orientation you've marked, you just set the POV to the dummy's value. You can also set position and orientation independently, and save "point of view" type variables in a list.

This isin't exactly what you asked but I know of no way to set the value of a point of view data type variable directly - and this will solve your problem. You can set position variables using a built-in function but I haven't found any way to use this information after it was set.
   
Reply With Quote
Old
Shushi88
Guest
 
Status:
Posts: n/a
Default 04-28-2007, 10:58 PM

Thank you for replying this post. Yes, the reply you gave me "nearly" answered my thread. But my "friend" challenge me that you can used only the object given and not adding it. To add salt to the wound,he said use
'variable method' and properties.) Generally i thought of putting a dummy but is it conflicting to condition that i write in this post? Thank you.
   
Reply With Quote
Old
Shushi88
Guest
 
Status:
Posts: n/a
Default 04-28-2007, 11:05 PM

Oh i forgot to mention that he also banned me for using "array and list" which makes my work easier.
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 04-29-2007, 12:53 AM

I don't completely understand what you are trying to do, but if you are trying to change an objects point of view either (1) just by editing that property it it's property list or (2) directly setting the value of that property using a method or function - I don't believe that can be done in Alice.

The only ways I know to directly set the point of view of an object is to either move the object to a point - the obvious way - or to set it's point of view equal to either that of another (real or dummy) object or to some objects previous point of view, which was earlier saved as a variable.
   
Reply With Quote
Old
Shushi88
Guest
 
Status:
Posts: n/a
Default 04-29-2007, 09:42 PM

Thanks for the info DrJim.
   
Reply With Quote
How to Set PoV in editor
Old
mlandis
Guest
 
Status:
Posts: n/a
Default How to Set PoV in editor - 07-25-2009, 11:39 AM

Actually, it's kind of tricky, but intuitive once you see how.

1) Move the camera to where you want an object to be, facing the direction you want it to face.

2) Drop a dummy there. That will have PoV info in it.

3) Move the camera elsewhere just for ease of reference

4) Select the object you want to move in the Object Tree. If you want to move a bunny, click on that bunny.

5) Look at the properties of the object you want to move (the bunny's property)

6) Drag the dummy you dropped in step 2 onto the PoV property for the selected object (bunny). It will copy the dummy's PoV onto the object's (bunny's) PoV.

Hope that helps!

Mike
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.