try this pasted into your script editor and run , Im in 2013 , not
sure when the 'bubbles' preset was introduced fairly sure it was a few
versions back.

the bubble emit from a grid

they are moving with velocities and forces
they get moved to the nearest surface of the sphere
they continue to move with velocities and forces





CreatePrim "Grid", "MeshSurface"
ICEFlow_CreateParticlesFromPreset "Bubbles", "Execute", "Emitter1", "
", False, "Bubbles", True
CreatePrim "Sphere", "MeshSurface"
SetValue "sphere.polymsh.geom.subdivu", 32
SetValue "sphere.polymsh.geom.subdivv", 32
Translate , 0, 7.46269605433498, 0, siRelative, siLocal, siObj, siXYZ,
, , , , , , , , , 0
ActivateObjectSelTool
SelectObj "Bubbles_PointCloud", , True
FirstFrame
AddICENode "$XSI_DSPRESETS\ICENodes\GetClosestLocationNode.Preset",
"Bubbles_PointCloud.pointcloud.ICETree"
AddICECompoundNode "Get Point Position", "Bubbles_PointCloud.pointcloud.ICETree"
ConnectICENodes
"Bubbles_PointCloud.pointcloud.ICETree.GetClosestLocationNode.position",
"Bubbles_PointCloud.pointcloud.ICETree.Get_Point_Position.Value"
SelectObj "sphere", , True
OpenAttachments
AddICENode "GetDataNode", "Bubbles_PointCloud.pointcloud.ICETree"
SetValue 
"Bubbles_PointCloud.pointcloud.ICETree.SceneReferenceNode[1].reference",
"sphere"
ConnectICENodes
"Bubbles_PointCloud.pointcloud.ICETree.GetClosestLocationNode.geometry",
"Bubbles_PointCloud.pointcloud.ICETree.SceneReferenceNode[1].value"
AddICECompoundNode "Set Data", "Bubbles_PointCloud.pointcloud.ICETree"
ConnectICENodes
"Bubbles_PointCloud.pointcloud.ICETree.Set_Data.Value",
"Bubbles_PointCloud.pointcloud.ICETree.GetClosestLocationNode.location"
AddPortToICENode "Bubbles_PointCloud.pointcloud.ICETree.port1",
siNodePortDataInsertionLocationAfter
ConnectICENodes "Bubbles_PointCloud.pointcloud.ICETree.port2",
"Bubbles_PointCloud.pointcloud.ICETree.Set_Data.Execute"
SetValue "Bubbles_PointCloud.pointcloud.ICETree.Set_Data.Reference",
"self.pointposition"
DisconnectICENodePort "Bubbles_PointCloud.pointcloud.ICETree.Set_Data.Value"
AddICENode "$XSI_DSPRESETS\ICENodes\GetDataNode.Preset",
"Bubbles_PointCloud.pointcloud.ICETree"
ConnectICENodes
"Bubbles_PointCloud.pointcloud.ICETree.SceneReferenceNode[2].source",
"Bubbles_PointCloud.pointcloud.ICETree.GetClosestLocationNode.location"
ConnectICENodes
"Bubbles_PointCloud.pointcloud.ICETree.Set_Data.Value",
"Bubbles_PointCloud.pointcloud.ICETree.SceneReferenceNode[2].value"
SetValue 
"Bubbles_PointCloud.pointcloud.ICETree.SceneReferenceNode[2].reference",
"pointposition"
PlayForwardsFromStart


On 29 January 2013 17:52, Nuno Conceicao <nunoalexconcei...@gmail.com> wrote:
> I did try it, they dont move, maybe im doing something wrong, I'll keep
> looking ....
>
>

Reply via email to