WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 02-21-2016, 01:06 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The floor's local coordinate system does not match Vizard's. You can highlight the floor in Inspector and activate translation to see how it's axes are oriented. The following code works to drop/raise the floor:

Code:
import viz
import vizact
viz.go()

room = viz.addChild('room.osgb')
floor = room.getTransform('floor')

def dropFloor():
	floor.setPosition([0,0,0.4],viz.REL_LOCAL)
	
def raiseFloor():
	floor.setPosition([0,0,-0.4],viz.REL_LOCAL)	

vizact.onkeydown('1', dropFloor)
vizact.onkeydown('2', raiseFloor)
Reply With Quote
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
EXE creating a new folder mshukun Vizard 2 09-23-2014 06:40 AM
Walk roobert Vizard 6 08-19-2014 07:07 PM
Creating a new DLS in trial license jmay Plug-in development 3 04-30-2014 09:30 AM
Creating Realistic Turns in Vizard using walkTo mikeb Vizard 1 02-28-2014 05:51 AM
random walk in piazza environment maya Vizard 7 01-15-2014 04:58 AM


All times are GMT -7. The time now is 04:51 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC