04-16-2024, 03:25 PM
(This post was last modified: 04-16-2024, 03:46 PM by sig.johnnson.)
I've got a few questions about the `Spray_Add` method of `robolink.Robolink`. I know some of these could be easily answered by trial, but I haven't been able to create a working example yet.
1. Is it required to spray from an object of type `robolink.ITEM_TYPE_TOOL`, or is it possible to spray from any object, such as a reference frame? If not, can you recommend any workarounds for spraying without creating a tool in my workstation?
2. When the particles are projected after being created, which direction to they project? For example, do they follow any of the `robolink.PROJECTION_xxx` flags such as `robolink.PROJECTION_CLOSEST`? Is this configurable?
I'm also having some trouble figuring out how to get the results I want from the parameter options.
Let's say I want to spray 10 drops of paint, each modeled as 1mm diameter spheres modeled using 18 facets, each 5mm apart. My best guess would be that I should use the following:
`params = 'PROJECT PARTICLE=SPHERE(1,18) STEP=10x1 RAND=0 RECTANGLE'`
I am not sure how to specify the spacing (5mm) of the particles and this command is putting down some particles in my workstation, but it's definitely not doing what I want. (It appears to be putting down exactly one particle, far from where my tool is.
1. Is it required to spray from an object of type `robolink.ITEM_TYPE_TOOL`, or is it possible to spray from any object, such as a reference frame? If not, can you recommend any workarounds for spraying without creating a tool in my workstation?
2. When the particles are projected after being created, which direction to they project? For example, do they follow any of the `robolink.PROJECTION_xxx` flags such as `robolink.PROJECTION_CLOSEST`? Is this configurable?
I'm also having some trouble figuring out how to get the results I want from the parameter options.
Let's say I want to spray 10 drops of paint, each modeled as 1mm diameter spheres modeled using 18 facets, each 5mm apart. My best guess would be that I should use the following:
`params = 'PROJECT PARTICLE=SPHERE(1,18) STEP=10x1 RAND=0 RECTANGLE'`
I am not sure how to specify the spacing (5mm) of the particles and this command is putting down some particles in my workstation, but it's definitely not doing what I want. (It appears to be putting down exactly one particle, far from where my tool is.