Liu Zhen

Liu Zhen

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

I want to copy node with python but something is wrong May 17, 2013, 6:53 a.m.

tamte
first of all your script is failing because the name you want to set already exists
so you need to do do
select.setName(news, unique_name=1)
or just
select.setName(news, 1)

or alter tha name with sime prefix like “instance_”
and then set the name

but be careful, your script currently takes all nodes from /obj, including your instance node and ipr_camera instead of maybe just nodes you want to create instances from

i am newer Thanks for your help ; it' s been very valuable

i will del the node before copy ,this just a test

I want to copy node with python but something is wrong May 17, 2013, 4:15 a.m.

i want copy instance node with python and just use the name of geo 's name
path = hou.node(“/obj/”)
all = path.children()
for i in all:
select = hou.copyNodesTo(,path)
news = i.name()
select.setName(news)