|
#1
|
|||
|
|||
hi jeff, yes it works
but i wanted to do a function where i can load it directly from my application this is the code i found in the vizard resources #Update raw pattern every frame vizact.onupdate(viz.PRIORITY_INPUT-1,UpdateLargestMarker) def SavePattern(): """Displays save dialog for creating pattern from largest raw marker""" if camera.largestMarker is not None: parent = win32ui.CreateWindowFromHandle(viz.window.getHandl e()) dlg = win32ui.CreateFileDialog(0,None,None,0,None,parent ) if dlg.DoModal() == win32con.IDOK: camera.savePattern(dlg.GetPathName(),camera.larges tMarker) #Save current pattern when spacebar is pressed vizact.onkeyup(' ',SavePattern) i want to do the same thing for loading the saved pattern for example, press ctrl+w to load pattern but i dont have any idea how to do it because i never used python before can you provide me any clue on how to do it jeff ? pseudocode is okay too. i'll try to figure it out, thanks for the reply. really appreciate it |
Tags |
3d model, artoolkit, gui, load, pattern |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble picking text3d objects | Salvar | Vizard | 4 | 12-01-2010 03:07 PM |
Semi-circle array containing target and distractor objects | ptjt255 | Vizard | 3 | 08-04-2009 03:09 AM |
Lightwave objects rotation problem | hosier | Vizard | 6 | 02-13-2009 12:04 PM |
Improve performance with large number of onthefly objects? | Fox5 | Vizard | 7 | 04-28-2008 05:19 PM |
Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 11:01 AM |