
For the 'Get Texture Map Color' node i have set the Location to 'Clips.noIcon_pic'.
what is wrong?

Code: Select all
Application.CreatePrim("Sphere", "MeshSurface", "", "")
Application.Create2DMap("", "", "siDefaultPropagation")
Application.CreateProjection("sphere", "siTxtSpherical", "siTxtDefaultSpherical", "Texture_Support", "Texture_Projection", "", "", "")
Application.SetInstanceDataValue("", "sphere.Texture_Map.UVReference", "Texture_Projection")
Application.GetPrim("PointCloud", "", "", "")
Application.ApplyOp("ICETree", "pointcloud", "siNode", "", "", 0)
Application.AddICECompoundNode("Get Texture Map Color", "pointcloud.pointcloud.ICETree")
Application.AddICENode("$XSI_DSPRESETS\\ICENodes\\AddPointNode.Preset", "pointcloud.pointcloud.ICETree")
Application.SelectObj("sphere", "", "")
Application.AddICENode("GetDataNode", "pointcloud.pointcloud.ICETree")
Application.SetValue("pointcloud.pointcloud.ICETree.SceneReferenceNode.reference", "sphere", "")
Application.SetValue("pointcloud.pointcloud.ICETree.SceneReferenceNode.reference", "sphere.PointPosition", "")
Application.ConnectICENodes("pointcloud.pointcloud.ICETree.AddPointNode.positions1", "pointcloud.pointcloud.ICETree.SceneReferenceNode.value")
Application.AddICECompoundNode("Set Data", "pointcloud.pointcloud.ICETree")
Application.SetValue("pointcloud.pointcloud.ICETree.Set_Data.Reference", "self.shape", "")
Application.SetValue("pointcloud.pointcloud.ICETree.Set_Data.Value", 4, "")
Application.AddPortToICENode("pointcloud.pointcloud.ICETree.Set_Data.Value", "siNodePortDataInsertionLocationAfter")
Application.SetValue("pointcloud.pointcloud.ICETree.Set_Data.Reference1", "self.size", "")
Application.SetValue("pointcloud.pointcloud.ICETree.Set_Data.Value1", 0.15, "")
Application.ConnectICENodes("pointcloud.pointcloud.ICETree.AddPointNode.oncreation1", "pointcloud.pointcloud.ICETree.Set_Data.Execute")
Application.ConnectICENodes("pointcloud.pointcloud.ICETree.port1", "pointcloud.pointcloud.ICETree.AddPointNode.add")
Application.AddICENode("$XSI_DSPRESETS\\ICENodes\\GetClosestLocationNode.Preset", "pointcloud.pointcloud.ICETree")
Application.AddICENode("GetDataNode", "pointcloud.pointcloud.ICETree")
Application.SetValue("pointcloud.pointcloud.ICETree.SceneReferenceNode[1].reference", "sphere", "")
Application.ConnectICENodes("pointcloud.pointcloud.ICETree.GetClosestLocationNode.geometry", "pointcloud.pointcloud.ICETree.SceneReferenceNode[1].value")
Application.ConnectICENodes("pointcloud.pointcloud.ICETree.Get_Texture_Map_Color.InputLocation", "pointcloud.pointcloud.ICETree.GetClosestLocationNode.location")
Application.SetValue("pointcloud.pointcloud.ICETree.Get_Texture_Map_Color.Select_Location", 5, "")
Application.AddPortToICENode("pointcloud.pointcloud.ICETree.Set_Data.Value1", "siNodePortDataInsertionLocationAfter")
Application.ConnectICENodes("pointcloud.pointcloud.ICETree.Set_Data.Value2", "pointcloud.pointcloud.ICETree.Get_Texture_Map_Color.Color")
Application.SetValue("pointcloud.pointcloud.ICETree.Set_Data.Reference2", "self.Color", "")
Application.AddICECompoundNode("Get Particle Position", "pointcloud.pointcloud.ICETree")
Application.ConnectICENodes("pointcloud.pointcloud.ICETree.GetClosestLocationNode.position", "pointcloud.pointcloud.ICETree.Get_Particle_Position.Position")
Application.SetValue("sphere.polymsh.geom.subdivu", 24, "")
Application.SetValue("sphere.polymsh.geom.subdivv", 24, "")