![]() |
|
#1
|
|||
|
|||
Here is a small example that uses the skydome plugin to show how to customize a plugin object. Usually you create your own Python module that specifies your class. In this example, create a file called SkyDome.py and add the following code to it:
Code:
import viz class SkyDomeClass(viz.VizCustomChild): def myfunc(self): self.command(1) viz.upgradeCustomNode('skydome.dlc',SkyDomeClass) def addSkyDome(): return viz.add('skydome.dlc') Code:
import viz viz.go() dome = addSkyDome() dome.myfunc() |
#2
|
|||
|
|||
Hi,
Aha, ok, it's starting to make sense... This command is then calling the C++ class func void CommandCustomNode(void *custom) ? (from the CustomNode example) Is there not a direct way of calling the CommandCustomNode() func? Isn't it exposed via the python module? thanks Raymond |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating a Vizard Sensor Plugin | farshizzo | Plug-in development | 25 | 08-01-2019 12:24 AM |
Custom Render .EXE export | vaestebob | Plug-in development | 2 | 05-12-2008 07:55 AM |
Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 11:01 AM |
animating custom faces: in search of "open_mouth" morphs | vr_boyko | Vizard | 1 | 09-16-2004 10:30 AM |
Creating Custom Avatar Heads | farshizzo | Vizard | 22 | 09-12-2004 09:23 PM |