![]() |
|
|
|
#1
|
|||
|
|||
|
array select 1 value
question
Code:
for cod in wall_1.getPosition() print cod |
|
#2
|
|||
|
|||
|
Code:
for cod in wall_1.getPosition() print cod[2] |
|
#3
|
|||
|
|||
|
tried that doesn't work
Traceback (most recent call last): File "<string>", line 11, in ? File "Test wall.py", line 106 for cod in wall_1.getPosition() ^ SyntaxError: invalid syntax |
|
#4
|
|||
|
|||
|
The point is that my z coordinate is constantly reset to 0.5 but what i want is that it get the object.getPosition += 0.5
Code:
def moveWallBackward ():
global pos
object = viz.pick()
if object.valid():
pos -= 0.5
object.setPosition([0,-4,pos])
vizact.onkeydown( 'j', moveWallBackward )
|
|
#5
|
|||
|
|||
|
cod = wall_1.getPosition()
print cod[2] |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Array, concatenate, multiple path help please | sircedric4 | Vizard | 3 | 10-28-2009 05:14 AM |
| Semi-circle array containing target and distractor objects | ptjt255 | Vizard | 3 | 08-04-2009 03:09 AM |
| 2D or 3D array help? | durf | Vizard | 1 | 02-20-2009 10:57 AM |
| How can I select and move an object? | nlfrnassimi | Vizard | 1 | 02-11-2009 01:08 AM |
| Copy objects in an array to another array | Johannes | Vizard | 3 | 04-29-2005 02:37 PM |