Error:cannot set a numeric parm to a non-numeric value
I tried to type $CY via python scripting to the val1 variable of the copy node.
Could you tell me how to solve this by scripting?
Found 55 posts.
Search results Show results as topic list.
Technical Discussion » Python Error
- helloworld
- 55 posts
- Offline
Technical Discussion » Python querying operator list contents
- helloworld
- 55 posts
- Offline
Hi I want to query the contents of the operator list through Python.I have also set my op filter to accept only lights in object level.
Please let me know how to query and return the name of the each pattern in the operator list
say if i refer to obj/pointlight1, I want to just display the name of the node,i.e,point light
Thank you.
Please let me know how to query and return the name of the each pattern in the operator list
say if i refer to obj/pointlight1, I want to just display the name of the node,i.e,point light
Thank you.
Technical Discussion » geometry parm in hda python
- helloworld
- 55 posts
- Offline
I want to add multiple bgeos using in my hda and I would also want to have the transform paramters for the bgeos.I have used multiparm list.But when i try to load up the bgeos from the parameter i created nothing seem to get displayed.
Any solutions please?Also i have attached the image
Any solutions please?Also i have attached the image
Technical Discussion » python ascode
- helloworld
- 55 posts
- Offline
hi i want to know if houdini can autoformat the code that asCode paramter gives.
Any solutions?
Any solutions?
Technical Discussion » Editable objects inside HDAs, permission errors etc.
- helloworld
- 55 posts
- Offline
Technical Discussion » python shelf tool doubt
- helloworld
- 55 posts
- Offline
cool! i think it shd work.now i myt hav to loop for the type inside the obj context and convert in hda.
thank you
thank you
Technical Discussion » python shelf tool doubt
- helloworld
- 55 posts
- Offline
yeah something like that.I actually want to create hdas in the obj context.In my case it happens like collapsing manner.
for eg: as u said i want one hda to have a geo node with every click on the obj context.
for eg: as u said i want one hda to have a geo node with every click on the obj context.
Technical Discussion » python shelf tool doubt
- helloworld
- 55 posts
- Offline
tmdaghi thank you for the reply.
I'm not sure if I understood You correctly but you should also properly provide new subnet name to make it work
for eg
subnet=hou.node('/obj/' + str(s))
for eg.
i want to behave it a point light shelf tool,when user ctrl clicks it twice i needed to place it everytime in the obj context.
Basically I tried to place several nodes in the same obj context.but for me its getting places inside the the hda.
I provided a new name for the subnet and appended str(s) as you said.
Technical Discussion » python shelf tool doubt
- helloworld
- 55 posts
- Offline
Hi I have a python script to create hda
now my doubt is that.if the user clicks the shelf tool 2 or more than 2times.
I want the hda to be created twice or n times in the obj context
obj = hou.node('/obj')
creategeo=obj.createNode('geo','geo1')
geo=hou.node('/obj').children()
s=obj.collapseIntoSubnet(geo)
subnet=hou.node('/obj/subnet1')
myhda=subnet.createDigitalAsset(name='myHDA')
now my doubt is that.if the user clicks the shelf tool 2 or more than 2times.
I want the hda to be created twice or n times in the obj context
obj = hou.node('/obj')
creategeo=obj.createNode('geo','geo1')
geo=hou.node('/obj').children()
s=obj.collapseIntoSubnet(geo)
subnet=hou.node('/obj/subnet1')
myhda=subnet.createDigitalAsset(name='myHDA')
Technical Discussion » Python locking hda
- helloworld
- 55 posts
- Offline
Is there any way to lock or hide the contents of hda completely through python?
thanks!
thanks!
Technical Discussion » converting to subnet via python
- helloworld
- 55 posts
- Offline
grahamHi Graham,
You need to call collapseIntoSubnet on the parent object, and pass in a list of child nodes to collapse.
>>> obj = hou.node('/obj')
>>> geo = obj.node('geo1')
>>> obj.collapseIntoSubnet()
<hou.ObjNode of type subnet at /obj/subnet1>
I have made this into hda from a subnet
Now I would like to change the default values of the hda
This is what I have tried so foar
hda=hou.Node.createDigitalAsset(s,hou.HDADefinition.setMinNumInputs='0')
where s=hou.node('obj/subnet1/')
Please correct me.
Thank you.
Technical Discussion » converting to subnet via python
- helloworld
- 55 posts
- Offline
I have a geo1 file and im trying to convert it through this code,but im getting some error.
a=hou.node('/obj/geo1')
>>> a=hou.Node.collapseIntoSubnet((geo1))
Please help me
a=hou.node('/obj/geo1')
>>> a=hou.Node.collapseIntoSubnet((geo1))
Please help me
Technical Discussion » IdPass
- helloworld
- 55 posts
- Offline
hi,i seen your file! but this is more like a matte pass.what do you think? i mean its use serves the same as id pass.but this is not an actual id pass.i dont see any numbers or ids in the mantra ip
Technical Discussion » IdPass
- helloworld
- 55 posts
- Offline
badhairdayas far as I know idpass is used to key out any objs in the comp.
I'm a little confused what you mean here. When I first render you're file I get a grey grid with a white teapot on top of it. Looking at the values on the material shops assigned to the objects, this is what is to be expected.
Personally for an id pass I would set the opacity on both materials to 1 and change the colour values to red(1,0,0), green(0,1,0) or blue(0,0,1) for different objects, instead of changing the opacity as you have done here.
if you right click in mantra ip and click on inspect you can see that grid,the teapot might have a random id in my case.my doubt is why I am getting the random ids and how to get a properly arranged numbers
you mean,you will assign different constant shaders each of different rgb colors to different objects?I think I did not change opacity.I just entered few attributes in the mantra in the image planes.
can you please share a sample file so that I can still understand what you mean?
Technical Discussion » IdPass
- helloworld
- 55 posts
- Offline
Hi,
I am trying to implement an id pass.
Ids are kind of working except the ids show different random numbers for some reason.I have attached the file.Please have a look and correct me.thank you
I am trying to implement an id pass.
Ids are kind of working except the ids show different random numbers for some reason.I have attached the file.Please have a look and correct me.thank you
-
- Quick Links