A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Re: Untitled - Stikked
From Bitty Porcupine, 6 Years ago, written in Python.
This paste is a reply to Untitled from Soft Matamata - go back
Embed
Viewing differences between Untitled and Re: Untitled
import sys
sys.path.append('G:/Rigging/Paxton/node_world')

append('G:/Rigging/Paxton/node_world')
import os
import node_world.tests.test_create_node as tcn
reload(tcn)
controller = tcn.test(count=0)

transform_1 = controller.create_node('transform', name='transform_1')
transform_2 = controller.create_node('transform', name='transform_2')
transform_3 = controller.create_node('transform', name='transform_3')

transform_2.set_parent(transform_1)

transform_3.set_parent(transform_2)

transform_3.parent

parent


transform_1.set_name('shoulder')
transform_2.set_name('elbow')
transform_3.set_name('wrist')


transform_1.matrix = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
transform_2.matrix = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
transform_3.matrix = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
transform_1.size = 1.9
transform_1.index = 99
plug_1 = transform_1.add_plug('plug_1')

plug_2 = transform_1.add_plug('plug_2')
plug_3 = transform_1.add_plug('plug_3')
plug_4 = transform_1.add_plug('plug_4')
plug_1.connect_to(plug_2)
plug_2.connect_to(plug_3)
plug_3.connect_to(plug_4)

controller.serialize('%s_test.json')
json' % os.path.expanduser('~'))