File: user_properties.py

package info (click to toggle)
k3d 0.8.0.2-6
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 40,692 kB
  • ctags: 39,695
  • sloc: cpp: 171,303; ansic: 24,129; xml: 6,995; python: 5,796; makefile: 726; sh: 22
file content (23 lines) | stat: -rw-r--r-- 697 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#python

import k3d
import sys

document = k3d.new_document()
node = k3d.plugin.create("Null", document)

types = [ "k3d::bool_t", "k3d::color", "k3d::double_t", "k3d::filesystem::path", "k3d::gl::imesh_painter*", "k3d::imaterial*", "k3d::inode*", "k3d::int32_t", "k3d::matrix4", "k3d::mesh*", "k3d::normal3", "k3d::point3", "k3d::point4", "k3d::ri::imesh_painter*", "k3d::ri::itexture*", "k3d::string_t", "k3d::vector3" ]

skip_values = [ ]

for type in types:
	name = type
	label = type
	description = ""
	k3d.property.create(node, type, name, label, description)

for type in types:
	if type not in skip_values:
		name = type
		print type + " value:", node.get_property(name).internal_value()