Python Sample Menu with Two Objects
.Python|Python ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix ..Python Debugging|Debugging with Python
How to install
First download the zip file from the following link: Media:Sample1.zip You can download the file anywhere on your computer and then you have to install it in VW by Opening plug-in manager from Tools->Plug-ins-> ...Plug-in Manager and by selecting 'Third-party Plug-ins' tab and clicking Install... botton. Now you have to load the zip file from the dialog. VW would first unzip the file and run install.py scrip if available. After restarting the VW, the two objects and one command menu is available to include in your workspace.
How the sample works
First install.py script would look for any available .vwx and .vww files and move them to the appropriate folders. Then the user can create a human object consisting of two sepaate objects named Head and Body and from the command menu can Select them all and group them as a one object. There are couple of thing to be learned from this example:
- How to write an installation script.
- How to design point objects from python
- How to traverse objects available in active layer and select them and group them from pythin script
Python basic information: Python