Forum

#1 2010-09-27 08:44:01

rajaram
Member

is there any delete command

HI,

Is there Delete node command like copy/paste

Offline

 

#2 2010-09-27 16:19:04

Ben
Guerilla dev, the guy to hug

Re: is there any delete command

Hi,

the modifier.deletenode function does the job, for all kind of nodes of the scene (also!)

Code:

local mod = Document:modify ()
mod.deletenode (MyMaterial)
local shadow = Document:findchild ("SpotLight|Shadow")
if shadow then
    mod.deletenode (shadow)
end

Regards,
Ben


Benjamin 'Ben' Legros
Guerilla developer
http://www.guerillarender.com

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB