T2dPath object created by resource isn't rendered in editor
by Shaderman · in Torque Game Builder · 01/07/2009 (7:49 am) · 2 replies
Hi.
I've written a small tool to copy and y-mirror a t2dPath object in the editor. The tool works fine but the created t2dPath object isn't rendered in the editor.
Here's a short video showing the problem:
And here's the code I use to add the new path to the scene:
Any ideas how to make the created path visible when it's added to the scene?
Thanks,
Stefan
I've written a small tool to copy and y-mirror a t2dPath object in the editor. The tool works fine but the created t2dPath object isn't rendered in the editor.
Here's a short video showing the problem:
And here's the code I use to add the new path to the scene:
%lastWindow = ToolManager.getLastWindow();
if( !isObject( %lastWindow ) || !isObject( %lastWindow.getScenegraph() ) )
return false;
%sceneGraph = %lastWindow.getScenegraph();
%sceneGraph.addToScene(%mirroredPath);Any ideas how to make the created path visible when it's added to the scene?
Thanks,
Stefan
#2
10/02/2009 (3:08 pm)
Thanks a lot for the response Phillip but unfortunately it doesn't work. I don't need to solve this problem because I can use this tool the way it works now. If anybody wants to track this down, I'd share my script of course :)
Associate Phillip O'Shea
Violent Tulip